Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAnimPhys
Description
Internal version of constrain angular. ConstrainAngularRange can work out some of these params so wraps this
| Name | ConstrainAngularRangeInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h |
| Include Path | #include "Animation/AnimPhysicsSolver.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimPhysicsSolver.cpp |
static void ConstrainAngularRangeInternal
(
float DeltaTime,
TArray < FAnimPhysAngularLimit > & LimitContainer,
FAnimPhysRigidBody * FirstBody,
const FQuat & JointFrame0,
FAnimPhysRigidBody * SecondBody,
const FQuat & JointFrame1,
AnimPhysTwistAxis TwistAxis,
const FVector & InJointLimitMin,
const FVector & InJointLimitMax,
float InJointBias
)
Parameters
| Name | Remarks |
|---|---|
| LimitContainer | Container to add limits to |
| FirstBody | First body in the constraint (or nullptr for world) |
| JointFrame0 | Frame/Rotation of the first side of the joint |
| SecondBody | Second body in the constraint |
| JointFrame1 | Frame/Rotation of the second side of the joint |
| TwistAxis | Axis to consider as the twist axis |
| InJointLimitMin | Minimum limits for the joint (twist axis ignored, always locked) |
| InJointLimitMax | Maximum limits for the joint (twist axis ignored, always locked) |