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