Method FromRotation
FromRotation(quaternion)
Returns a Transform initialized with the given rotation. Position will be 0,0,0, and scale will be 1.
Declaration
public static LocalTransform FromRotation(quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| quaternion | rotation | The rotation. |
Returns
| Type | Description |
|---|---|
| LocalTransform | The Transform. |