Summary
Moves the given
TransformComponent
position by the specified translation in the coordinate space defined by relativeTo.
- Namespace
- StrideToolkit
.Engine - Containing Type
- TransformExtensions
Syntax
public static void Translate(this TransformComponent transform, ref Vector3 translation, Space relativeTo = Self)
Remarks
This method updates the
TransformComponent.LocalMatrix
and TransformComponent.WorldMatrix
after transformation.
Parameters
Name | Type | Description |
---|---|---|
transform | TransformComponent | The TransformComponent to update. |
translation | Vector3 | The translation vector to move by. |
relativeTo | Space | The coordinate space to perform the translation in. |
Return Value
Type | Description |
---|---|
void |