Choose your operating system:
Windows
macOS
Linux
| FConstraintInstanceBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstance.h |
Include |
#include "PhysicsEngine/ConstraintInstance.h" |
struct FConstraintInstance : public FConstraintInstanceBase
Container for a physics representation of an object.
Name | Description | ||
---|---|---|---|
|
AngularRotationOffset |
Specifies the angular offset between the two frames of reference. |
|
|
float |
AverageMass |
|
|
uint32: 1 |
bScaleLinearLimits |
If true, linear limits scale using the absolute min of the 3d scale of the owning component |
|
ConstraintBone1 |
Name of first bone (body) that this constraint is connecting. |
|
|
ConstraintBone2 |
Name of second bone (body) that this constraint is connecting. |
|
|
JointName |
Name of bone that this joint is associated with. |
|
|
Pos1 |
Location of constraint in Body1 reference frame (usually the "child" body for skeletal meshes). |
|
|
Pos2 |
Location of constraint in Body2 reference frame (usually the "parent" body for skeletal meshes). |
|
|
PriAxis1 |
Primary (twist) axis in Body1 reference frame. |
|
|
PriAxis2 |
Primary (twist) axis in Body2 reference frame. |
|
|
ProfileInstance |
Constraint Data (properties easily swapped at runtime based on different constraint profiles) |
|
|
SecAxis1 |
Seconday axis in Body1 reference frame. Orthogonal to PriAxis1. |
|
|
SecAxis2 |
Seconday axis in Body2 reference frame. Orthogonal to PriAxis2. |
|
|
UserData |
Name | Description | |
---|---|---|
|
FConstraintInstance() |
Constructor |
Name | Description | ||
---|---|---|---|
|
FConstraintI... |
Alloc() |
|
|
CopyConstraintGeometryFrom ( |
||
|
CopyConstraintParamsFrom ( |
||
|
CopyConstraintPhysicalPropertiesFrom ( |
Copies non-identifying properties from another constraint instance |
|
|
CopyProfilePropertiesFrom ( |
Copies behavior properties from the given profile. |
|
|
DisableParentDominates() |
||
|
DisableProjection() |
Turn off linear and angular projection |
|
|
DrawConstraint ( |
||
|
DrawConstraint ( |
||
|
EnableParentDominates() |
Enable/Disable parent dominates (meaning the parent body cannot be be affected at all by a child) |
|
|
EnableProjection() |
Turn on linear and angular projection |
|
|
Free ( |
Hacks to easily get zeroed memory for special case when we don't use GC. |
|
|
float |
GetAngularBreakThreshold() |
Gets Torque needed to break the joint |
|
EAngularDriv... |
GetAngularDriveMode() |
Set the angular drive mode |
|
GetAngularDriveParams ( |
Get the angular drive's strength parameters |
|
|
const FRotat... |
GetAngularOrientationTarget() |
Get the angular drive's orientation target |
|
float |
GetAngularPlasticityThreshold() |
Gets Delta from target needed to reset the target joint |
|
float |
GetAngularSwing1Limit() |
Gets the cone limit swing1 angle in degrees |
|
EAngularCons... |
GetAngularSwing1Motion() |
Gets the motion type for the swing1 of the cone constraint |
|
float |
GetAngularSwing2Limit() |
Gets the cone limit swing2 angle in degrees |
|
EAngularCons... |
GetAngularSwing2Motion() |
Gets the motion type for the swing2 of the cone constraint |
|
float |
GetAngularTwistLimit() |
Gets the twist limit angle in degrees |
|
EAngularCons... |
GetAngularTwistMotion() |
Gets the motion type for the twist of the cone constraint |
|
GetAngularVelocityDriveSLERP() |
Get whether the SLERP angular velocity drive is enabled. |
|
|
GetAngularVelocityDriveTwistAndSwing |
Get which twist and swing angular velocity drives are enabled. |
|
|
const FVecto... |
GetAngularVelocityTarget() |
Get the angular drive's angular velocity target |
|
const FName ... |
GetChildBoneName() |
Get the child bone name |
|
GetConstraintForce |
Retrieve the constraint force most recently applied to maintain this constraint. Returns 0 forces if the constraint is not initialized or broken. |
|
|
GetConstraintLocation() |
Get the position of this constraint in world space. |
|
|
float |
GetContactTransferScale() |
Get the Contact Transfer Scale for the parent of the joint |
|
float |
GetCurrentSwing1() |
The current swing1 of the constraint. |
|
float |
GetCurrentSwing2() |
The current swing2 of the constraint. |
|
float |
GetCurrentTwist() |
The current twist of the constraint. |
|
GetIsSoftLinearLimit() |
Whether the linear limits are soft (only if at least one axis if Limited) |
|
|
GetIsSoftSwingLimit() |
Whether the swing limits are soft (only available if swing1 and/or swing2 is Limited) |
|
|
GetIsSoftTwistLimit() |
Whether the twist limits are soft (only available if twist is Limited) |
|
|
float |
GetLastKnownScale() |
|
|
float |
GetLinearBreakThreshold() |
Gets linear force needed to break the joint |
|
GetLinearDriveParams ( |
Get the linear drive's strength parameters |
|
|
float |
GetLinearLimit() |
Gets the linear limit size |
|
float |
GetLinearPlasticityThreshold() |
Gets Delta from target needed to reset the target joint |
|
TEnumAsByte<... |
GetLinearPlasticityType() |
Gets Plasticity Type from joint |
|
const FVecto... |
GetLinearPositionTarget() |
Get the linear drive's target position position |
|
const FVecto... |
GetLinearVelocityTarget() |
Get the linear drive's target velocity |
|
ELinearConst... |
GetLinearXMotion() |
Gets the motion type for the linear X-axis limit. |
|
ELinearConst... |
GetLinearYMotion() |
Gets the motion type for the linear Y-axis limit. |
|
ELinearConst... |
GetLinearZMotion() |
Gets the motion type for the linear Z-axis limit. |
|
GetOrientationDriveSLERP() |
Get whether the SLERP angular position drive is enabled. |
|
|
GetOrientationDriveTwistAndSwing |
Get which twist and swing orientation drives are enabled. |
|
|
const FName ... |
GetParentBoneName() |
Get the parent bone name |
|
const FPhysi... |
GetPhysicsConstraintRef() |
Get underlying physics engine constraint |
|
GetProjectionAlphasOrTolerances ( |
Get projection parameters Chaos returns alphas, PhysX returns tolerances |
|
|
GetRefFrame ( |
Get component ref frame. |
|
|
float |
GetSoftLinearLimitContactDistance() |
Linear contact distance if the constraint is set to use soft linear limits |
|
float |
GetSoftLinearLimitDamping() |
Linear damping if the constraint is set to use soft linear limits |
|
float |
GetSoftLinearLimitRestitution() |
Linear restitution if the constraint is set to use soft linear limits |
|
float |
GetSoftLinearLimitStiffness() |
Linear stiffness if the constraint is set to use soft linear limits |
|
float |
GetSoftSwingLimitContactDistance() |
Swing Contact distance if the constraint is set to use soft limits |
|
float |
GetSoftSwingLimitDamping() |
Swing damping if the constraint is set to use soft limits |
|
float |
GetSoftSwingLimitRestitution() |
Swing restitution if the constraint is set to use soft limits |
|
float |
GetSoftSwingLimitStiffness() |
Swing stiffness if the constraint is set to use soft limits |
|
float |
GetSoftTwistLimitContactDistance() |
Twist contact distance if the constraint is set to use soft limits |
|
float |
GetSoftTwistLimitDamping() |
Twist damping if the constraint is set to use soft limits |
|
float |
GetSoftTwistLimitRestitution() |
Twist restitution if the constraint is set to use soft limits |
|
float |
GetSoftTwistLimitStiffness() |
Twist stiffness if the constraint is set to use soft limits |
|
GetUsedMaterials ( |
||
|
HasAngularPlasticity() |
Gets Whether it is possible to reset the target angles |
|
|
HasLinearPlasticity() |
Gets Whether it is possible to reset the target position |
|
|
InitConstraint ( |
Create physics engine constraint. |
|
|
InitConstraint_AssumesLocked ( |
Create physics engine constraint using physx actors. |
|
|
IsAngularBreakable() |
Gets Whether it is possible to break the joint with angular force |
|
|
IsAngularOrientationDriveEnabled() |
Whether the angular orientation drive is enabled |
|
|
IsAngularVelocityDriveEnabled() |
Whether the angular velocity drive is enabled |
|
|
IsBroken() |
Retrieve the status of constraint being broken. |
|
|
IsCollisionDisabled() |
Whether collision is currently disabled |
|
|
IsLinearBreakable() |
Gets Whether it is possible to break the joint with linear force |
|
|
IsLinearPositionDriveEnabled() |
Whether the linear position drive is enabled |
|
|
IsLinearPositionDriveXEnabled() |
Get which linear position drives is enabled on XAxis |
|
|
IsLinearPositionDriveYEnabled() |
Get which linear position drives is enabled on YAxis |
|
|
IsLinearPositionDriveZEnabled() |
Get which linear position drives is enabled on ZAxis |
|
|
IsLinearVelocityDriveEnabled() |
Whether the linear velocity drive is enabled |
|
|
IsLinearVelocityDriveXEnabled() |
Get which linear position drives is enabled on XAxis |
|
|
IsLinearVelocityDriveYEnabled() |
Get which linear position drives is enabled on YAxis |
|
|
IsLinearVelocityDriveZEnabled() |
Get which linear position drives is enabled on ZAxis |
|
|
IsParentDominatesEnabled() |
Whether parent domination is enabled (meaning the parent body cannot be be affected at all by a child) |
|
|
IsProjectionEnabled() |
Whether projection is enabled for this constraint |
|
|
IsTerminated() |
Whether the physics engine constraint has been terminated |
|
|
IsValidConstraintInstance() |
See if this constraint is valid. |
|
|
PostSerialize ( |
||
|
Serialize ( |
||
|
SetAngularBreakable ( |
Sets the Angular Breakable properties |
|
|
SetAngularDOFLimitScale ( |
Scale Angular Limit Constraints (as defined in RB_ConstraintSetup). |
|
|
SetAngularDriveMode ( |
Set the angular drive mode |
|
|
SetAngularDriveParams ( |
Set the angular drive's strength parameters Function for setting angular motor parameters. |
|
|
SetAngularOrientationTarget ( |
Set the angular drive's orientation target Function for setting target angular position. |
|
|
SetAngularPlasticity ( |
Sets the Angular Plasticity properties |
|
|
SetAngularSwing1Limit ( |
Sets the Angular Swing1 Motion Type |
|
|
SetAngularSwing1Motion ( |
Sets the cone limit's swing1 motion type |
|
|
SetAngularSwing2Limit ( |
Sets the Angular Swing2 Motion Type |
|
|
SetAngularSwing2Motion ( |
Sets the cone limit's swing2 motion type |
|
|
SetAngularTwistLimit ( |
Sets the Angular Twist Motion Type |
|
|
SetAngularTwistMotion ( |
Sets the twist limit's motion type |
|
|
SetAngularVelocityDriveSLERP ( |
Set whether the SLERP angular velocity drive is enabled. |
|
|
SetAngularVelocityDriveTwistAndSwing |
Set which twist and swing angular velocity drives are enabled. |
|
|
SetAngularVelocityTarget ( |
Set the angular drive's angular velocity target Function for setting target angular velocity. |
|
|
SetContactTransferScale ( |
Sets the Contact Transfer Scale properties |
|
|
SetDisableCollision ( |
Set whether jointed actors can collide with each other |
|
|
SetLinearBreakable ( |
Sets the Linear Breakable properties |
|
|
SetLinearDriveParams ( |
Set the linear drive's strength parameters Function for setting linear motor parameters. |
|
|
SetLinearLimits ( |
Sets the Linear XYZ Motion Type and the limit distance ( distance is the same for all 3 axes) |
|
|
SetLinearLimitSize ( |
Allows you to dynamically change the size of the linear limit 'sphere'. |
|
|
SetLinearPlasticity ( |
Sets the Linear Plasticity properties |
|
|
SetLinearPositionDrive |
Set which linear position drives are enabled |
|
|
SetLinearPositionTarget ( |
Set the linear drive's target position position Function for setting linear position target. |
|
|
SetLinearVelocityDrive |
Set which linear velocity drives are enabled |
|
|
SetLinearVelocityTarget ( |
Set the linear drive's target velocity Function for setting linear velocity target. |
|
|
SetLinearXLimit ( |
Sets the LinearX Motion Type and the limit distance ( distance is the same for all 3 axes) |
|
|
SetLinearXMotion ( |
Sets the Linear XMotion type |
|
|
SetLinearYLimit ( |
Sets the LinearY Motion Type and the limit distance ( distance is the same for all 3 axes) |
|
|
SetLinearYMotion ( |
Sets the Linear YMotion type |
|
|
SetLinearZLimit ( |
Sets the LinearZ Motion Type and the limit distance ( distance is the same for all 3 axes) |
|
|
SetLinearZMotion ( |
Sets the Linear ZMotion type |
|
|
SetOrientationDriveSLERP ( |
Set whether the SLERP angular position drive is enabled. |
|
|
SetOrientationDriveTwistAndSwing |
Set which twist and swing orientation drives are enabled. |
|
|
SetProjectionParams ( |
Set projection parameters |
|
|
SetRefFrame ( |
Pass in reference frame in. If the constraint is currently active, this will set its active local pose. Otherwise the change will take affect in InitConstraint. |
|
|
SetRefOrientation ( |
Pass in reference orientation in (maintains reference position). If the constraint is currently active, this will set its active local pose. Otherwise the change will take affect in InitConstraint. |
|
|
SetRefPosition ( |
Pass in reference position in (maintains reference orientation). If the constraint is currently active, this will set its active local pose. Otherwise the change will take affect in InitConstraint. |
|
|
SetSoftLinearLimitParams ( |
Set twist soft limit parameters |
|
|
SetSoftSwingLimitParams ( |
Set twist soft limit parameters |
|
|
SetSoftTwistLimitParams ( |
Set twist soft limit parameters |
|
|
TermConstraint() |
Terminate physics engine constraint |
|
|
UpdateAngularLimit() |
Refreshes the physics engine joint's angular limits. |
|
|
UpdateLinearLimit() |
Refreshes the physics engine joint's linear limits. |
Name | Description | ||
---|---|---|---|
|
float |
AngularBreakThreshold_DEPRECATED |
|
|
float |
AngularDriveDamping_DEPRECATED |
|
|
float |
AngularDriveForceLimit_DEPRECATED |
|
|
TEnumAsByte< EA... |
AngularDriveMode_DEPRECATED |
|
|
float |
AngularDriveSpring_DEPRECATED |
|
|
AngularOrientationTarget_DEPRECATED |
||
|
AngularPositionTarget_DEPRECATED |
||
|
TEnumAsByte< en... |
AngularSwing1Motion_DEPRECATED |
|
|
TEnumAsByte< en... |
AngularSwing2Motion_DEPRECATED |
|
|
TEnumAsByte< en... |
AngularTwistMotion_DEPRECATED |
|
|
AngularVelocityTarget_DEPRECATED |
||
|
uint32: 1 |
bAngularBreakable_DEPRECATED |
|
|
uint32: 1 |
bAngularOrientationDrive_DEPRECATED |
|
|
uint32: 1 |
bAngularSlerpDrive_DEPRECATED |
|
|
uint32: 1 |
bAngularVelocityDrive_DEPRECATED |
|
|
uint32: 1 |
bDisableCollision_DEPRECATED |
DEPRECATED Most of these properties have moved inside the ProfileInstance member (FConstraintProfileProperties struct) |
|
uint32: 1 |
bEnableProjection_DEPRECATED |
|
|
uint32: 1 |
bLinearBreakable_DEPRECATED |
|
|
uint32: 1 |
bLinearLimitSoft_DEPRECATED |
|
|
uint32: 1 |
bLinearPositionDrive_DEPRECATED |
|
|
uint32: 1 |
bLinearVelocityDrive_DEPRECATED |
|
|
uint32: 1 |
bSwingLimitSoft_DEPRECATED |
|
|
uint32: 1 |
bSwingPositionDrive_DEPRECATED |
|
|
uint32: 1 |
bSwingVelocityDrive_DEPRECATED |
|
|
uint32: 1 |
bTwistLimitSoft_DEPRECATED |
|
|
uint32: 1 |
bTwistPositionDrive_DEPRECATED |
|
|
uint32: 1 |
bTwistVelocityDrive_DEPRECATED |
|
|
float |
LinearBreakThreshold_DEPRECATED |
|
|
float |
LinearDriveDamping_DEPRECATED |
|
|
float |
LinearDriveForceLimit_DEPRECATED |
|
|
float |
LinearDriveSpring_DEPRECATED |
|
|
float |
LinearLimitDamping_DEPRECATED |
|
|
float |
LinearLimitSize_DEPRECATED |
|
|
float |
LinearLimitStiffness_DEPRECATED |
|
|
LinearPositionTarget_DEPRECATED |
||
|
LinearVelocityTarget_DEPRECATED |
||
|
TEnumAsByte< en... |
LinearXMotion_DEPRECATED |
|
|
TEnumAsByte< en... |
LinearYMotion_DEPRECATED |
|
|
TEnumAsByte< en... |
LinearZMotion_DEPRECATED |
|
|
float |
ProjectionAngularTolerance_DEPRECATED |
|
|
float |
ProjectionLinearTolerance_DEPRECATED |
|
|
float |
Swing1LimitAngle_DEPRECATED |
|
|
float |
Swing2LimitAngle_DEPRECATED |
|
|
float |
SwingLimitDamping_DEPRECATED |
|
|
float |
SwingLimitStiffness_DEPRECATED |
|
|
float |
TwistLimitAngle_DEPRECATED |
|
|
float |
TwistLimitDamping_DEPRECATED |
|
|
float |
TwistLimitStiffness_DEPRECATED |
Name | Description | ||
---|---|---|---|
|
SetAngularPositionDrive |
Please call SetOrientationDriveTwistAndSwing. |
|
|
SetAngularVelocityDrive |
Please call SetAngularVelocityDriveTwistAndSwing. |