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

float

 

AngularPlasticityThreshold

Degree threshold from target angle needed to reset the target angle.

Public variable

uint8: 1

 

bAngularBreakable

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

Public variable

uint8: 1

 

bAngularPlasticity

Whether it is possible to reset target rotations from the angular displacement.

Public variable

uint8: 1

 

bDisableCollision

Disable collision between bodies joined by this constraint.

Public variable

uint8: 1

 

bEnableProjection

[PhysX] 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

 

bEnableSoftProjection

[Chaos Only] Apply projection to constraints with soft limits.

Public variable

uint8: 1

 

bLinearBreakable

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

Public variable

uint8: 1

 

bLinearPlasticity

Whether it is possible to reset spring rest length from the linear deformation.

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

 

LinearPlasticityThreshold

Percent threshold from target position needed to reset the spring rest length.

Public variable

float

 

ProjectionAngularAlpha

[Chaos Only] How much angular projection to apply [0-1].

Public variable

float

 

ProjectionAngularTolerance

[PhysX only] Angular tolerance value in world units.

Public variable

float

 

ProjectionLinearAlpha

[Chaos Only] How much linear projection to apply [0-1].

Public variable

float

 

ProjectionLinearTolerance

[PhysX only] 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 joint breakable properties (threshold, etc...)

Public function Const

void

 

UpdateConstraintFlags_AssumesLocked

(
    const FPhysicsConstraintHandle& In...
)

Updates joint flag based on profile properties

Public function Const

void

 

UpdatePlasticity_AssumesLocked

(
    const FPhysicsConstraintHandle& In...
)

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

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