Impact CFX API 1.5.0
Comprehensive API documentation for Impact CFX - Collision Effects System
Loading...
Searching...
No Matches
ImpactCFX.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.
 
static Quaternion GetVelocityRotation (AlignmentAxis alignment, Vector3 normal, Vector3 velocity)
 Gets a rotation using the given alignment, surface normal, and velocity.
 

Detailed Description

Utility class for AlignmentAxis.

Member Function Documentation

◆ GetRotationForAlignment()

static Quaternion ImpactCFX.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 ImpactCFX.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.