Impact Interaction System API
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Impact.Data.AlignmentAxisUtilities Class Reference

Utility class for AlignmentAxis. More...

Static Public Member Functions

static Quaternion GetRotationForAlignment (AlignmentAxis alignment, Vector3 normal)
 Gets a rotation using the given alignment and surface normal. More...
 
static Quaternion GetVelocityRotation (AlignmentAxis alignment, Vector3 normal, Vector3 velocity)
 Gets a rotation using the given alignment, surface normal, and velocity. More...
 

Detailed Description

Utility class for AlignmentAxis.

Member Function Documentation

◆ GetRotationForAlignment()

static Quaternion Impact.Data.AlignmentAxisUtilities.GetRotationForAlignment ( AlignmentAxis  alignment,
Vector3  normal 
)
static

Gets a rotation using the given alignment and surface normal.

Parameters
alignmentThe axis alignment to use.
normalThe 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
alignmentThe axis alignment to use.
normalThe surface normal.
velocityThe velocity of the interaction.