FAnimPhys::ConstrainPositionPrismatic

Constrain bodies together with linear limits forming a box or prism around the constraint

Windows
MacOS
Linux

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

Syntax

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
)

Remarks

Constrain bodies together with linear limits forming a box or prism around the constraint

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss