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 ConstrainPositionPrismatic
(
float DeltaTime,
TArray< FAnimPhysLinearLimit > & LimitContainer,
FAnimPhysRigidBody * FirstBody,
const FVector & FirstPosition,
FAnimPhysRigidBody * SecondBody,
const FVector & SecondPosition,
const FQuat & PrismRotation,
const FVector & LimitsMin,
const FVector & LimitsMax
)
Constrain bodies together with linear limits forming a box or prism around the constraint
Parameter |
Description |
---|---|
LimitContainer |
Container to add limits to |
FirstBody |
First body in the constraint (or nullptr for world) |
FirstPosition |
Local position on first body to apply constraint |
SecondBody |
Second body in the constraint |
SecondPosition |
Local position on the second body to apply constraint |
PrismRotation |
Rotation to apply to the prism axes, only necessary when constraining to world, otherwise the rotation of the first body is used |
LimitsMin |
Minimum limits along axes |
LimitsMax |
Maximum limits along axes |