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 ConstrainPositionPrismatic
&40;
float DeltaTime,
TArray< FAnimPhysLinearLimit > & LimitContainer,
FAnimPhysRigidBody &42; FirstBody,
const FVector & FirstPosition,
FAnimPhysRigidBody &42; SecondBody,
const FVector & SecondPosition,
const FQuat & PrismRotation,
const FVector & LimitsMin,
const FVector & LimitsMax
&41;
Remarks
Constrain bodies together with linear limits forming a box or prism around the constraint
Parameters
Name | 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 |