Utility class for AlignmentAxis.
More...
Utility class for AlignmentAxis.
◆ GetRotationForAlignment()
| static Quaternion Impact.Data.AlignmentAxisUtilities.GetRotationForAlignment |
( |
AlignmentAxis |
alignment, |
|
|
Vector3 |
normal |
|
) |
| |
|
static |
Gets a rotation using the given alignment and surface normal.
- Parameters
-
| alignment | The axis alignment to use. |
| normal | The surface normal. |
◆ GetVelocityRotation()
| static Quaternion Impact.Data.AlignmentAxisUtilities.GetVelocityRotation |
( |
AlignmentAxis |
alignment, |
|
|
Vector3 |
normal, |
|
|
Vector3 |
velocity |
|
) |
| |
|
static |
Gets a rotation using the given alignment, surface normal, and velocity.
- Parameters
-
| alignment | The axis alignment to use. |
| normal | The surface normal. |
| velocity | The velocity of the interaction. |