FAnimPhys::ConstrainConeAngle

Constraints the rotation between two bodies into a cone

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 ConstrainConeAngle
(
    float DeltaTime,
    TArray< FAnimPhysAngularLimit > & LimitContainer,
    FAnimPhysRigidBody * FirstBody,
    const FVector & Normal0,
    FAnimPhysRigidBody * SecondBody,
    const FVector & Normal1,
    float LimitAngle,
    float InJointBias
)

Remarks

Constraints the rotation between two bodies into a cone

Parameters

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%)

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