Summary
Rotates the given
TransformComponent
by the specified eulerAngles in the coordinate space defined by relativeTo.
- Namespace
- StrideToolkit
.Engine - Containing Type
- TransformExtensions
Syntax
public static void Rotate(this TransformComponent transform, Vector3 eulerAngles, 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. |
eulerAngles | Vector3 | The euler angles in radians to rotate by. |
relativeTo | Space | The coordinate space to perform the rotation in. |
Return Value
Type | Description |
---|---|
void |