sm.item.getShapeRotation
Gets the shape local rotation given a shape rotation index and a surface normal in local space (unit axis vector).
Kind: Function
Environments: Game
Game
sm.item.getShapeRotation( uuid, rotationIndex, localNormal )
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
Uuid | The shape uuid. |
rotationIndex (optional) |
integer | The rotation index to get the rotation for. (Defaults to 0) |
localNormal (optional) |
Vec3 | The local space normal the is considered to be placed on. (Defaults to positive Z axis) |
Returns:
| Type | Description |
|---|---|
| Quat | The local shape rotation. |