|
| void | Add (Transform transform, bool worldPositionStays) |
| | Adds a child transform, optionally keeping its transformation in world space intact. More...
|
| |
| void | DetachFromParent (bool worldPositionStays) |
| | Removes this transform as a child of its current parent, and makes it a root transform. More...
|
| |
| Vector | TransformPosition (Vector position) |
| | Applies this transformation to a position, moving it from local space to world space. More...
|
| |
| Vector | TransformVector (Vector vector) |
| | Applies this transformation to a vector, moving it from local space to world space without offsetting it by this transform's position. More...
|
| |
| Vector | InverseTransformPosition (Vector position) |
| | Applies the inverse of this transformation to a position, moving it from world space to local space. More...
|
| |
| Vector | InverseTransformVector (Vector vector) |
| | Applies the inverse of this transformation to a vector, moving it from world space to local space without offsetting it by this transform's position. More...
|
| |
| void | Rotate (Vector axis, float angle) |
| | Rotates this transform about a given axis by the given angle in degrees. More...
|
| |
| void | Save (BinaryWriter writer) |
| | Serializes this transformation to a BinaryWriter. More...
|
| |
| void | Load (BinaryReader reader) |
| | Deserializes this transformation from a BinaryReader. More...
|
| |
| override string | ToString () |
| | Returns the name of the entity this transform is attached to. More...
|
| |
| Entity | CreateChild () |
| | Creates a new Entity parented to this one. More...
|
| |
| TComponent | CreateChildWithComponent< TComponent > () |
| | Creates a new Entity parented to this one with a component of the given type, which is returned. More...
|
| |
| Entity | FindChild (string name, bool recurse=true) |
| | Attempts to find a child Entity of this one with the given name, and optionally searches recursively through all children. Null is returned if no matches are found. More...
|
| |
| TComponent | FindChildComponent< TComponent > (string name, bool recurse=true) |
| | Attempts to find a child Entity of this one with the given name, and optionally searches recursively through all children. If a matching Entity is found, a component of the given type is retrieved from it. Null is returned if no matches are found. More...
|
| |
| Entity | FindParent (string name) |
| | Attempts to find an Entity that contains this Object's Entity with the given Name. Returns null if no match is found. More...
|
| |
| TComponent | FindParentComponent< TComponent > () |
| | Attempts to find an Entity that contains this Object's Entity with a component of the given type. If a matching Entity is found, the component of the given type is retrieved from it. Returns null if no match is found. More...
|
| |
| TComponent | FindParentComponent< TComponent > (string name) |
| | Attempts to find an Entity that contains this Object's Entity with the given Name. If a matching Entity is found, a component of the given type is retrieved from it. Returns null if no match is found. More...
|
| |
| TComponent | AddComponent< TComponent > () |
| | Adds a component of the specified type to this entity, returning the new component. More...
|
| |
| TComponent | GetOrAddComponent< TComponent > () |
| | Attempts to get a component of the specified type from this entity, adding it if one doesn't already exist. More...
|
| |
| TComponent | GetComponent< TComponent > () |
| | Attempts to get a component of the specified type from this entity, returning null if one doesn't exist. More...
|
| |
| IEnumerable< TComponent > | GetComponents< TComponent > () |
| | Gets all components derived from the given type. More...
|
| |
|
| bool | IsReadOnly [get, set] |
| | This transform cannot be modified if true. More...
|
| |
| Vector | Position [get, set] |
| | The world space position of this transform. More...
|
| |
| Vector | LocalPosition [get, set] |
| | The position of this transform inside its parent. More...
|
| |
| Vector | LocalScale [get, set] |
| | Scale of this transform relative to its parent. More...
|
| |
| Quaternion | Rotation [get, set] |
| | The world space rotation of this transform. More...
|
| |
| Quaternion | LocalRotation [get, set] |
| | The rotation of this transform relative to its parent. More...
|
| |
| Transform | Parent [get, protected set] |
| | The transform of the parent entity, or null if this transform has no parent. More...
|
| |
| IEnumerable< Transform > | Children [get] |
| | An enumeration of the transforms of any entities parented to this one. More...
|
| |
| abstract bool | IsValid [get] |
| | Tests to see if this object hasn't been removed. More...
|
| |
| virtual string | Name [get, set] |
| | Custom name associated with this Object's Entity, used to find the Entity in the hierarchy. More...
|
| |
| virtual Transform | Transform [get] |
| | Transformation of this Object's Entity. More...
|
| |
| virtual IWorld | World [get] |
| | The IWorld that contains this Object. More...
|
| |
Contains the position, rotation and scale of an entity.