FAnimPhys::ConstrainAngularRange

Constraint two bodies together with angular limits, limiting the relative rotation between them.

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 ConstrainAngularRange
(
    float DeltaTime,
    TArray< FAnimPhysAngularLimit > & LimitContainer,
    FAnimPhysRigidBody * FirstBody,
    FAnimPhysRigidBody * SecondBody,
    const FQuat & JointFrame,
    AnimPhysTwistAxis TwistAxis,
    const FVector & JointLimitMin,
    const FVector & JointLimitMax,
    float InJointBias
)

Remarks

Constraint two bodies together with angular limits, limiting the relative rotation between them. Note that this allows TWO axes to rotate, the twist axis will always be locked

Parameters

Parameter

Description

LimitContainer

Container to add limits to

FirstBody

First body in the constraint (or nullptr for world)

SecondBody

Second body in constraint

JointFrame

Frame/Rotation of the joint

TwistAxis

The axis to regard as the twist axis

JointLimitMin

Minimum limits along each axis (twist axis ignored)

JointLimitMax

Maximum limits along each axis (twist axis ignored)

InJointBias

Bias towards second body's forces (1.0f = 100%)

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