Skip to content

Mojo3d entity ext

mojo3d:mojo3d.Entity

Class Entity Extension#

Utility extension methods for entities.

Properties
Animator The animator attached to the entity. (read only)
Collider The collider attached to the entity. (read only)
Joint The joint attached to the entity. (read only)
LocalRotation Local space rotation in degrees.
LocalRx Local space rotation around the X axis in degrees.
LocalRy Local space rotation around the Y axis in degrees.
LocalRz Local space rotation around the Z axis in degrees.
LocalSx Local space scale on the X axis.
LocalSy Local space scale on the Y axis.
LocalSz Local space scale on the Z axis.
LocalX Local space X coordinate.
LocalY Local space Y coordinate.
LocalZ Local space Z coordinate.
RigidBody The rigid body attached to the entity. (read only)
Rotation World space rotation in degrees.
Rx World space rotation around the X axis in degrees.
Ry World space rotation around the Y axis in degrees.
Rz World space rotation around the Z axis in degrees.
Sx World space scale on the X axis.
Sy World space scale on the Y axis.
Sz World space scale on the Z axis.
X World space X coordinate.
Y World space Y coordinate.
Z World space Z coordinate.
Methods
GetBasis Gets entity basis matrix in local or world space.
GetPosition Gets entity position in local or world space.
GetRotation Gets entity rotation in euler angles in local or world space.
GetScale Gets entity scale in local or world space.
Move Moves the entity.
MoveX Moves the entity on the X axis.
MoveY Moves the entity on the Y axis.
MoveZ Moves the entity on the Z axis.
PointAt Points the entity at a target.
Rotate Rotates the entity.
RotateX Rotates the entity around the X axis.
RotateY Rotates the entity around the Y axis.
RotateZ Rotates the entity around the Z axis.
SetBasis Sets entity basis matrix in local or world space.
SetPosition Sets entity position in local or world space.
SetRotation Sets entity rotation in euler angles in local or world space.
SetScale Sets entity scale in local or world space.