Class in Zendir.Universe
| Inherits from UniverseEvent
Declaration
class UniverseObject ;
Description
Represents the base class for any 3D physical object in the simulation.
Properties
Declared Description Behaviours A collection of behaviours attached to this object. Children A collection of children attached to this object. LocalForward The direction of the transform frame’s forward vector, which is along the Y axis. LocalRight The direction of the transform frame’s right vector, which is along the X axis. LocalUp The direction of the transform frame’s up vector, which is along the Z axis. Models A collection of models attached to this object. Out_TransformMsg This defines the base transform message that stores the state of the transform of this object. Parent The currently attached parent object (if any). Position [m] The position of the object relative to the parent or to world origin, if no parent exists. Root The root object in the parent chain. Rotation [-] The rotation of the object relative to the parent or to the world origin, if no parent exists.
Inherited Description IsEnabled Is true if the object is currently enabled. Name The display name or tag of this object.
Methods
Declared Description AddObject Returns a new simulation object with the specified type. Attach Attempts to attach this object to a new parent. This will only work if the current object is no parented to anyother object. ContainsModelWithID Returns true if an attached model satisfies the specified ID. ContainsModelWithType Returns true if an attached model satisfies the specified type. Detach This is an action to detach the current object from its parent, if it exists and move it to another object or tojust exist within the simulation. FindBehavioursWithType Returns all attached behaviours that satisfies the specified type. FindBehaviourWithID Returns an attached behaviour that satisfies the specified ID. FindBehaviourWithType Returns an attached behaviour that satisfies the specified type. FindChildrenWithType Returns all attached children that satisfies the specified type. FindChildWithID Returns an attached child that satisfies the specified ID. FindChildWithType Returns an attached child that satisfies the specified type. FindModelsWithType Returns all attached models that satisfies the specified type. FindModelWithID Returns an attached model that satisfies the specified ID. FindModelWithType Returns an attached model that satisfies the specified type. FindParentWithID Returns an attached parent that satisfies the specified ID. FindParentWithType Returns an attached parent that satisfies the specified type. FindRootWithID Returns a root object that satisfies the specified ID. FindRootWithType Returns a root object that satisfies the specified type. GetModel Returns a valid assigned model with the specified type. GetWorldTransform Returns the world transform of the object which is relative to the parent. If no parent exists, this will be thetransform of the object in world space. PitchDegrees Pitches the local transform by some rotation along the X axis. RollDegrees Rolls the local transform by some rotation along the Y axis. YawDegrees Yaws the local transform by some rotation along the Z axis.
Inherited Description Destroy Removes the current object from the simulation.