UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FConstraintBaseParams Struct Reference

#include <ConstraintTypes.h>

+ Inheritance diagram for FConstraintBaseParams:

Public Member Functions

ENGINE_API FConstraintBaseParams ()
 

Public Attributes

float Stiffness
 
float Damping
 
float Restitution
 
float ContactDistance
 
uint8 bSoftConstraint: 1
 

Constructor & Destructor Documentation

◆ FConstraintBaseParams()

FConstraintBaseParams::FConstraintBaseParams ( )

Member Data Documentation

◆ bSoftConstraint

uint8 FConstraintBaseParams::bSoftConstraint

Whether we want to use a soft constraint (spring).

◆ ContactDistance

float FConstraintBaseParams::ContactDistance

Determines how close to the limit we have to get before turning the joint on. Larger value will be more expensive, but will do a better job not violating constraints. A smaller value will be more efficient, but easier to violate.

◆ Damping

float FConstraintBaseParams::Damping

Damping of the soft constraint. Only used when Soft Constraint is on.

◆ Restitution

float FConstraintBaseParams::Restitution

Controls the amount of bounce when the constraint is violated. A restitution value of 1 will bounce back with the same velocity the limit was hit. A value of 0 will stop dead.

◆ Stiffness

float FConstraintBaseParams::Stiffness

Stiffness of the soft constraint. Only used when Soft Constraint is on.


The documentation for this struct was generated from the following files: