Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine
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
Type | Name | Description | |
---|---|---|---|
![]() |
float | AngularBreakThreshold | Torque needed to break the joint. |
![]() |
FAngularDriveConstraint | AngularDrive | |
![]() |
float | AngularPlasticityThreshold | [Chaos Only] Degree threshold from target angle needed to reset the target angle. |
![]() |
uint8: 1 | bAngularBreakable | Whether it is possible to break the joint with angular force. |
![]() |
uint8: 1 | bAngularPlasticity | Whether it is possible to reset target rotations from the angular displacement. |
![]() |
uint8: 1 | bDisableCollision | Disable collision between bodies joined by this constraint. |
![]() |
uint8: 1 | bEnableMassConditioning | Whether mass conditioning is enabled for this joint. |
![]() |
uint8: 1 | bEnableProjection | Projection is a post-solve position and angular fixup consisting of two correction procedures. |
![]() |
uint8: 1 | bEnableShockPropagation | Shock propagation increases the mass of the parent body for the last iteration of the position and velocity solve phases. |
![]() |
uint8: 1 | bLinearBreakable | Whether it is possible to break the joint with linear force. |
![]() |
uint8: 1 | bLinearPlasticity | Whether it is possible to reset spring rest length from the linear deformation. |
![]() |
uint8: 1 | bParentDominates | When set, the parent body in a constraint will not be affected by the motion of the child. |
![]() |
FConeConstraint | ConeLimit | |
![]() |
float | ContactTransferScale | [Chaos Only] Colliison transfer on parent from the joints child. Range is 0.0-MAX |
![]() |
float | LinearBreakThreshold | Force needed to break the distance constraint. |
![]() |
FLinearDriveConstraint | LinearDrive | |
![]() |
FLinearConstraint | LinearLimit | |
![]() |
float | LinearPlasticityThreshold | [Chaos Only] Percent threshold from center of mass distance needed to reset the linear drive position target. |
![]() |
TEnumAsByte< enum EConstraintPlasticityType > | LinearPlasticityType | Whether linear plasticity has a operation mode [free] |
![]() |
float | ProjectionAngularAlpha | How much semi-physical angular projection correction to apply [0-1]. |
![]() |
float | ProjectionAngularTolerance | If the joint error is above this distance after the solve phase, the child body will be teleported to fix the error. |
![]() |
float | ProjectionLinearAlpha | How much semi-physical linear projection correction to apply [0-1]. |
![]() |
float | ProjectionLinearTolerance | If the joint error is above this distance after the solve phase, the child body will be teleported to fix the error. |
![]() |
float | ShockPropagationAlpha | How much shock propagation to apply [0-1]. |
![]() |
FTwistConstraint | TwistLimit |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | SyncChangedConstraintProperties
(
FPropertyChangedChainEvent& PropertyChangedEvent |
|
![]() ![]() |
void | Update_AssumesLocked
(
const FPhysicsConstraintHandle& InConstraintRef, |
Updates physx joint properties from unreal properties (limits, drives, flags, etc...) |
![]() ![]() |
void | UpdateBreakable_AssumesLocked
(
const FPhysicsConstraintHandle& InConstraintRef |
Updates joint breakable properties (threshold, etc...) |
![]() ![]() |
void | UpdateConstraintFlags_AssumesLocked
(
const FPhysicsConstraintHandle& InConstraintRef |
Updates joint flag based on profile properties |
![]() ![]() |
void | UpdateContactTransferScale_AssumesLocked
(
const FPhysicsConstraintHandle& InConstraintRef |
Updates joint linear mass scales. |
![]() ![]() |
void | UpdatePlasticity_AssumesLocked
(
const FPhysicsConstraintHandle& InConstraintRef |
Updates joint breakable properties (threshold, etc...) |