Summary
Performs a direction transformation using the inverse of the given
TransformComponent.WorldMatrix
.
- Namespace
- StrideToolkit
.Engine - Containing Type
- TransformExtensions
Syntax
public static void InverseTransformDirection(this TransformComponent transform, ref Vector3 direction, out Vector3 result)
Remarks
This method does not update the
TransformComponent.WorldMatrix
before performing the transformation.
If the TransformComponent
has been modified since the last frame you may need to call the TransformComponent.UpdateWorldMatrix
method first.
Parameters
Name | Type | Description |
---|---|---|
transform | TransformComponent | The transform to get the world matrix from. |
direction | Vector3 | The direction vector to transform. |
result | Vector3 | The transformed direction. |
Return Value
Type | Description |
---|---|
void |