![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "PhysicsEngine/ConstraintInstance.h"#include "Engine/SkeletalMesh.h"#include "UObject/FrameworkObjectVersion.h"#include "Components/SkeletalMeshComponent.h"#include "PhysicsEngine/PhysicsConstraintComponent.h"#include "PhysicsEngine/PhysicsObjectExternalInterface.h"#include "PhysicsEngine/PhysicsAsset.h"#include "PhysicsProxy/SingleParticlePhysicsProxy.h"#include "Logging/MessageLog.h"#include "Misc/UObjectToken.h"#include "Physics/Experimental/PhysScene_Chaos.h"Macros | |
| #define | LOCTEXT_NAMESPACE "ConstraintInstance" |
| #define | SET_DRIVE_PARAM(VAR, CONDITION, BIT) (VAR) = (CONDITION) ? ((VAR) | (BIT)) : ((VAR) & ~(BIT)) |
Variables | |
| bool | bEnableSkeletalMeshConstraints = true |
| FAutoConsoleVariableRef | CVarEnableSkeletalMeshConstraints (TEXT("p.EnableSkeletalMeshConstraints"), bEnableSkeletalMeshConstraints, TEXT("Enable skeletal mesh constraints defined within the Physics Asset Editor")) |
| bool | bAllowKinematicKinematicConstraints = true |
| FAutoConsoleVariableRef | CVarAllowKinematicKinematicConstraints (TEXT("p.AllowKinematicKinematicConstraints"), bAllowKinematicKinematicConstraints, TEXT("Do not create constraints between two rigid kinematics.")) |
| #define LOCTEXT_NAMESPACE "ConstraintInstance" |
| #define SET_DRIVE_PARAM | ( | VAR, | |
| CONDITION, | |||
| BIT | |||
| ) | (VAR) = (CONDITION) ? ((VAR) | (BIT)) : ((VAR) & ~(BIT)) |
Handy macro for setting BIT of VAR based on the bool CONDITION
| FTransform CalculateRelativeBoneTransform | ( | const FName | ToBoneName, |
| const FName | FromBoneName, | ||
| const FReferenceSkeleton & | ReferenceSkeleton | ||
| ) |
Returns the 'To' bone's transform relative to the 'From' bone.
| float ComputeAverageMass_AssumesLocked | ( | Chaos::FPhysicsObject * | Body1, |
| Chaos::FPhysicsObject * | Body2 | ||
| ) |
| TAutoConsoleVariable< float > CVarConstraintAngularDampingScale | ( | TEXT("p.ConstraintAngularDampingScale") | , |
| 100000. | f, | ||
| TEXT("The multiplier of constraint angular damping in simulation. Default: 100000") | , | ||
| ECVF_ReadOnly | |||
| ) |
| TAutoConsoleVariable< float > CVarConstraintAngularStiffnessScale | ( | TEXT("p.ConstraintAngularStiffnessScale") | , |
| 100000. | f, | ||
| TEXT("The multiplier of constraint angular stiffness in simulation. Default: 100000") | , | ||
| ECVF_ReadOnly | |||
| ) |
| TAutoConsoleVariable< float > CVarConstraintLinearDampingScale | ( | TEXT("p.ConstraintLinearDampingScale") | , |
| 1. | f, | ||
| TEXT("The multiplier of constraint linear damping in simulation. Default: 1") | , | ||
| ECVF_ReadOnly | |||
| ) |
| TAutoConsoleVariable< float > CVarConstraintLinearStiffnessScale | ( | TEXT("p.ConstraintLinearStiffnessScale") | , |
| 1. | f, | ||
| TEXT("The multiplier of constraint linear stiffness in simulation. Default: 1") | , | ||
| ECVF_ReadOnly | |||
| ) |
| bool GetActorRefs | ( | FBodyInstance * | Body1, |
| FBodyInstance * | Body2, | ||
| FPhysicsActorHandle & | OutActorRef1, | ||
| FPhysicsActorHandle & | OutActorRef2, | ||
| UObject * | DebugOwner | ||
| ) |
| FAutoConsoleVariableRef CVarAllowKinematicKinematicConstraints(TEXT("p.AllowKinematicKinematicConstraints"), bAllowKinematicKinematicConstraints, TEXT("Do not create constraints between two rigid kinematics.")) | ( | TEXT("p.AllowKinematicKinematicConstraints") | , |
| bAllowKinematicKinematicConstraints | , | ||
| TEXT("Do not create constraints between two rigid kinematics.") | |||
| ) |
| FAutoConsoleVariableRef CVarEnableSkeletalMeshConstraints(TEXT("p.EnableSkeletalMeshConstraints"), bEnableSkeletalMeshConstraints, TEXT("Enable skeletal mesh constraints defined within the Physics Asset Editor")) | ( | TEXT("p.EnableSkeletalMeshConstraints") | , |
| bEnableSkeletalMeshConstraints | , | ||
| TEXT("Enable skeletal mesh constraints defined within the Physics Asset Editor") | |||
| ) |