Module |
|
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
(
float DeltaTime,
TArray< FAnimPhysAngularLimit > & LimitContainer,
FAnimPhysRigidBody * FirstBody,
const FVector & Normal0,
FAnimPhysRigidBody * SecondBody,
const FVector & Normal1,
float LimitAngle,
float InJointBias
)
Constraints the rotation between two bodies into a cone
Parameter |
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%) |