transform
Description
This library includes functions for working with Transforms.Functions
getLocalPosition
Returns the local position of the given entity.
transform.getLocalPosition(eid: Eid, out?: Vec3): Vec3
getLocalTransform
Returns the local transform matrix of the given entity.
transform.getLocalTransform(eid: Eid, out?: Mat4): Mat4
getWorldPosition
Returns the world position of the given entity.
transform.getWorldPosition(eid: Eid, out?: Vec3): Vec3
getWorldTransform
Returns the world transform matrix of the given entity.
transform.getWorldTransform(eid: Eid, out?: Mat4): Mat4
setLocalPosition
Sets the local position of the given entity.
transform.setLocalPosition(eid: Eid, position: Vec3Source): void
setLocalTransform
Sets the local transform matrix of the given entity.
transform.setLocalTransform(eid: Eid, mat4: Mat4): void