FConstraintProfileProperties

Container for properties of a physics constraint that can be easily swapped at runtime.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstance.h

Include

#include "PhysicsEngine/ConstraintInstance.h"

Syntax

struct FConstraintProfileProperties

Remarks

Container for properties of a physics constraint that can be easily swapped at runtime. This is useful for switching different setups when going from ragdoll to standup for example

Variables

Name Description

Public variable

float

 

AngularBreakThreshold

Torque needed to break the joint.

Public variable

FAngularDriveCo...

 

AngularDrive

Public variable

uint8: 1

 

bAngularBreakable

Whether it is possible to break the joint with angular force.

Public variable

uint8: 1

 

bDisableCollision

Disable collision between bodies joined by this constraint.

Public variable

uint8: 1

 

bEnableProjection

If distance error between bodies exceeds 0.1 units, or rotation error exceeds 10 degrees, body will be projected to fix this.

Public variable

uint8: 1

 

bLinearBreakable

Whether it is possible to break the joint with linear force.

Public variable

uint8: 1

 

bParentDominates

When set, the parent body in a constraint will not be affected by the motion of the child.

Public variable

FConeConstraint

 

ConeLimit

Public variable

float

 

LinearBreakThreshold

Force needed to break the distance constraint.

Public variable

FLinearDriveCon...

 

LinearDrive

Public variable

FLinearConstrai...

 

LinearLimit

Public variable

float

 

ProjectionAngularTolerance

Angular tolerance value in world units.

Public variable

float

 

ProjectionLinearTolerance

Linear tolerance value in world units.

Public variable

FTwistConstrain...

 

TwistLimit

Constructors

Functions

Name Description

Public function

void

 

SyncChangedConstraintProperties

(
    FPropertyChangedChainEvent& Proper...
)

Public function Const

void

 

Update_AssumesLocked

(
    const FPhysicsConstraintHandle& In...,
    float AverageMass,
    float UseScale
)

Updates physx joint properties from unreal properties (limits, drives, flags, etc...)

Public function Const

void

 

UpdateBreakable_AssumesLocked

(
    const FPhysicsConstraintHandle& In...
)

Updates physx joint breakable properties (threshold, etc...)

Public function Const

void

 

UpdateConstraintFlags_AssumesLocked

(
    const FPhysicsConstraintHandle& In...
)

Updates physx joint flag based on profile properties

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