|
|
void | MarkAsDirty () const |
| |
|
void | ClearTickDirty () |
| |
|
void | UpdateChildren () |
| |
◆ AddChild()
Add a transform as a child object of this transform
- Parameters
-
| child | weak reference to the child object |
◆ Forward()
| vector3 RavEngine::Transform::Forward |
( |
| ) |
const |
|
inline |
- Returns
- the vector pointing in the forward direction of this transform
◆ GenerateLocalMatrix()
| matrix4 RavEngine::Transform::GenerateLocalMatrix |
( |
| ) |
const |
|
inline |
Construct a transformation matrix out of this transform
- Returns
- glm matrix representing this transform
◆ GetMatrix()
| matrix4 RavEngine::Transform::GetMatrix |
( |
| ) |
const |
|
inline |
- Returns
- the current cached matrix, representing the world-space transformation. This may be out-of-date. See CalculateWorldMatrix to calculate if out-of-date.
◆ GetWorldMatrix()
| matrix4 RavEngine::Transform::GetWorldMatrix |
( |
| ) |
const |
|
inline |
Get the matrix list of all the parents.
- Parameters
-
| list | the list to add the matrices to |
◆ LocalRotateDelta()
Additively apply a rotation to this transform in local (parent) space.
- Parameters
-
| delta | the change in rotation to apply |
◆ LocalTranslateDelta()
Translate the transform in a direction in local (parent) space. This will add to its current position
- Parameters
-
◆ RemoveChild()
Remove a transform as a child object of this transform. This does not check if the passed object is actually a child.
- Parameters
-
| child | weak reference to the child object |
◆ Right()
| vector3 RavEngine::Transform::Right |
( |
| ) |
const |
|
inline |
- Returns
- the vector pointing in the right direction of this transform
◆ SetLocalPosition()
Overwrite the position of the transform with a new position in local (parent) space
- Parameters
-
| newPos | the new position of this transform |
◆ SetLocalRotation()
Overwrite the rotation of this transform in local (parent) space.
- Parameters
-
| newRot | the new rotation to set |
◆ SetLocalScale()
Overwrite the scale of this object with a new scale
- Parameters
-
| newScale | the new size of this object in local (parent) space |
◆ SetWorldPosition()
Move this transform to a new location in world space
- Parameters
-
| newPos | the new position in world space. |
◆ SetWorldRotation()
Overwrite the rotation of this transform in world space
- Parameters
-
| newRot | the new rotation in world space |
◆ Up()
| vector3 RavEngine::Transform::Up |
( |
| ) |
const |
|
inline |
- Returns
- the vector pointing in the up direction of this transform
The documentation for this struct was generated from the following files:
- RavEngine/include/RavEngine/Transform.hpp
- RavEngine/src/Transform.cpp