Navigation
API > API/Runtime > API/Runtime/Engine
Distance constraint
| Name | FLinearConstraint |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintTypes.h |
| Include Path | #include "PhysicsEngine/ConstraintTypes.h" |
Syntax
USTRUCT ()
struct FLinearConstraint : public FConstraintBaseParams
Inheritance Hierarchy
- FConstraintBaseParams → FLinearConstraint
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLinearConstraint() |
PhysicsEngine/ConstraintTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Limit | float | The distance allowed between the two joint reference frames. | PhysicsEngine/ConstraintTypes.h |
|
| XMotion | TEnumAsByte< enum ELinearConstraintMotion > | Indicates the linear constraint applied along the X-axis. | PhysicsEngine/ConstraintTypes.h |
|
| YMotion | TEnumAsByte< enum ELinearConstraintMotion > | Indicates the linear constraint applied along the Y-axis. | PhysicsEngine/ConstraintTypes.h |
|
| ZMotion | TEnumAsByte< enum ELinearConstraintMotion > | Indicates the linear constraint applied along theZX-axis. | PhysicsEngine/ConstraintTypes.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateLinearLimit_AssumesLocked
(
const FPhysicsConstraintHandle& InConstraintRef, |
Updates physx linear constraint from unreal data. | PhysicsEngine/ConstraintTypes.h |