Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstance.h |
Include |
#include "PhysicsEngine/ConstraintInstance.h" |
struct FConstraintProfileProperties
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 | Description | ||
---|---|---|---|
|
float |
AngularBreakThreshold |
Torque needed to break the joint. |
|
AngularDrive |
||
|
float |
AngularPlasticityThreshold |
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 |
bEnableProjection |
[PhysX] If distance error between bodies exceeds 0.1 units, or rotation error exceeds 10 degrees, body will be projected to fix this. |
|
uint8: 1 |
bEnableSoftProjection |
[Chaos Only] Apply projection to constraints with soft limits. |
|
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. |
|
ConeLimit |
||
|
float |
LinearBreakThreshold |
Force needed to break the distance constraint. |
|
LinearDrive |
||
|
LinearLimit |
||
|
float |
LinearPlasticityThreshold |
Percent threshold from target position needed to reset the spring rest length. |
|
float |
ProjectionAngularAlpha |
[Chaos Only] How much angular projection to apply [0-1]. |
|
float |
ProjectionAngularTolerance |
[PhysX only] Angular tolerance value in world units. |
|
float |
ProjectionLinearAlpha |
[Chaos Only] How much linear projection to apply [0-1]. |
|
float |
ProjectionLinearTolerance |
[PhysX only] Linear tolerance value in world units. |
|
TwistLimit |
Name | Description | |
---|---|---|
|
FConstraintProfileProperties() |
Name | Description | ||
---|---|---|---|
|
SyncChangedConstraintProperties ( |
||
|
Update_AssumesLocked ( |
Updates physx joint properties from unreal properties (limits, drives, flags, etc...) |
|
|
UpdateBreakable_AssumesLocked ( |
Updates joint breakable properties (threshold, etc...) |
|
|
UpdateConstraintFlags_AssumesLocked ( |
Updates joint flag based on profile properties |
|
|
UpdatePlasticity_AssumesLocked ( |
Updates joint breakable properties (threshold, etc...) |