|
Couch
|
#include <Spatial.h>


Public Member Functions | |
| virtual Name | GetType () const |
| Transform | GetTransform () |
| void | SetTransform (Transform transform) |
| Transform | GetGlobalTransform () |
| void | SetGlobalTransform (Transform globalTransform) |
| virtual void | Translate (Vector3 offset) |
| void | RotateX (float phi) |
| void | RotateY (float phi) |
| void | RotateZ (float phi) |
| void | UniformScale (float scale) |
| virtual Spatial * | Create () |
| virtual Spatial * | Duplicate () |
| virtual Spatial * | Instance () |
Public Member Functions inherited from Node | |
| Node (bool isPrefab) | |
| bool | IsPrefab () |
| NodeList | GetChildren () |
| void | AddChild (Node *child) |
| Node * | GetParent () |
| void | QueueFree () |
| void | DoFree () |
Additional Inherited Members | |
Static Public Member Functions inherited from Node | |
| static Node * | GetRoot () |
Spatial nodes have a transform property. They can be subclassed or instanced as an anchor for their children.
|
virtual |
Allocates a new "default" version of this node.
Reimplemented from Node.
Reimplemented in Rigidbody, Mesh, PointLight, DirectionalLight, and Light.
|
virtual |
Copies the properties of this node to a newly allocated node, created via Create. Subclasses should override this to copy additional class attributes
Reimplemented from Node.
Reimplemented in Rigidbody, Mesh, PointLight, DirectionalLight, and Light.
| Transform Spatial::GetGlobalTransform | ( | ) |
Gets the translation with relation to the world origin
| Transform Spatial::GetTransform | ( | ) |
Gets the transform property of this spatial
|
virtual |
Creates an instanced version of this node, by calling Duplicate. Subclasses should override this to perform neccesary tasks for instantiation, i.e. adding a physic object to the physics world. Any children of this node will also be instanced.
Reimplemented from Node.
Reimplemented in Rigidbody, Mesh, PointLight, DirectionalLight, and Light.
| void Spatial::RotateX | ( | float | phi | ) |
Rotates the Camera phi radians about the X axis
| phi | The amount to rotate in radians |
| void Spatial::RotateY | ( | float | phi | ) |
Rotates the Camera phi radians about the Y axis
| phi | The amount to rotate in radians |
| void Spatial::RotateZ | ( | float | phi | ) |
Rotates the Camera phi radians about the Z axis
| phi | The amount to rotate in radians |
| void Spatial::SetGlobalTransform | ( | Transform | globalTransform | ) |
Sets the transform with relation to the world origin
| globalTransform | The global transform property |
| void Spatial::SetTransform | ( | Transform | transform | ) |
Sets the transform property of this spatial.
| transform | The transform property |
|
virtual |
Directly translates the spatial by offset
| offset | The offset of the transform operation |
Reimplemented in Rigidbody.
| void Spatial::UniformScale | ( | float | scale | ) |
Scales the spatial by scale uniformly
| scale | The amount to scale by. |