Skip to main content

ObjectLocation

The ObjectLocation class represents user-defined transformations for ObjectNode instances. These transformations can originate from external systems such as physics engines, inverse kinematics, or procedural animation.

note

Unlike ObjectAnimation, which is stored in GPU memory, ObjectLocation data resides in CPU memory.

#include <scene/TellusimObjectFrame.h>

Constructors

ObjectLocation()
explicit ObjectLocation(Object &object)

Methods

Clear location.

void clear()

Location object.

void setObject(Object &object)
const Object getObject() const
Object getObject()

Location transforms.

void setTransform(uint32_t node, Matrix4x3f transform)
void setTransform(uint32_t node, Transform transform)
const Transform getTransform(uint32_t node) const
Transform getTransform(uint32_t node)
uint32_t getNumTransforms() const
const Transform *getTransforms() const
Transform *getTransforms()

Types

using Transform = ObjectFrame::Transform