Summary
Moves the given
TransformComponent
position by the specified translation relative to the local coordinate space of another TransformComponent
.
- Namespace
- StrideToolkit
.Engine - Containing Type
- TransformExtensions
Syntax
public static void Translate(this TransformComponent transform, ref Vector3 translation, TransformComponent relativeTo)
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 | TransformComponent | The TransformComponent to perform the translation relative to. |
Return Value
Type | Description |
---|---|
void |