FAnimPhys::ConstrainPlanar

Constrains the position of a body to one side of a plane placed at PlaneTransform (plane normal is Z axis)

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 ConstrainPlanar
(
    float DeltaTime,
    TArray< FAnimPhysLinearLimit > & LimitContainer,
    FAnimPhysRigidBody * Body,
    const FTransform & PlaneTransform
)

Remarks

Constrains the position of a body to one side of a plane placed at PlaneTransform (plane normal is Z axis)

Parameters

Parameter

Description

LimitContainer

Container to add limits to

Body

The body to constrain to the plane

PlaneTransform

Transform of the plane, with the normal facing along the Z axis of the orientation

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