mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
function to turn nestable-type into a string
This commit is contained in:
parent
70efe4aa4f
commit
51cb579773
2 changed files with 16 additions and 0 deletions
|
@ -1138,3 +1138,17 @@ SpatiallyNestablePointer SpatiallyNestable::findByID(QUuid id, bool& success) {
|
||||||
}
|
}
|
||||||
return parentWP.lock();
|
return parentWP.lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString SpatiallyNestable::nestableTypeToString(NestableType nestableType) {
|
||||||
|
switch(nestableType) {
|
||||||
|
case NestableType::Entity:
|
||||||
|
return "entity";
|
||||||
|
case NestableType::Avatar:
|
||||||
|
return "avatar";
|
||||||
|
case NestableType::Overlay:
|
||||||
|
return "overlay";
|
||||||
|
default:
|
||||||
|
return "unknown";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -64,6 +64,8 @@ public:
|
||||||
static glm::vec3 localToWorldAngularVelocity(const glm::vec3& angularVelocity,
|
static glm::vec3 localToWorldAngularVelocity(const glm::vec3& angularVelocity,
|
||||||
const QUuid& parentID, int parentJointIndex, bool& success);
|
const QUuid& parentID, int parentJointIndex, bool& success);
|
||||||
|
|
||||||
|
static QString nestableTypeToString(NestableType nestableType);
|
||||||
|
|
||||||
// world frame
|
// world frame
|
||||||
virtual const Transform getTransform(bool& success, int depth = 0) const;
|
virtual const Transform getTransform(bool& success, int depth = 0) const;
|
||||||
virtual const Transform getTransform() const;
|
virtual const Transform getTransform() const;
|
||||||
|
|
Loading…
Reference in a new issue