Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/FAnimPhys
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h |
Include | #include "Animation/AnimPhysicsSolver.h" |
Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimPhysicsSolver.cpp |
static void ConstrainConeAngle
&40;
float DeltaTime,
TArray< FAnimPhysAngularLimit > & LimitContainer,
FAnimPhysRigidBody &42; FirstBody,
const FVector & Normal0,
FAnimPhysRigidBody &42; SecondBody,
const FVector & Normal1,
float LimitAngle,
float InJointBias
&41;
Remarks
Constraints the rotation between two bodies into a cone
Parameters
Name | Description |
---|---|
LimitContainer | Container to add limits to |
FirstBody | First body in the constraint (or nullptr for world) |
Normal0 | Normal for the first side of the constraint |
SecondBody | Second body in the constraint |
Normal1 | Normal for the second side of the constraint |
LimitAngle | Angle to limit the cone to |
InJointBias | Bias towards second body's forces (1.0f = 100%) |