Navigation
API > API/Runtime > API/Runtime/Engine
Linear Drive
| Name | FLinearDriveConstraint |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintDrives.h |
| Include Path | #include "PhysicsEngine/ConstraintDrives.h" |
Syntax
USTRUCT ()
struct FLinearDriveConstraint
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLinearDriveConstraint() |
PhysicsEngine/ConstraintDrives.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAccelerationMode | bool | Whether the specified strength is acceleration or force. (default: acceleration) | PhysicsEngine/ConstraintDrives.h |
|
| PositionTarget | FVector | Target position the linear drive. | PhysicsEngine/ConstraintDrives.h |
|
| VelocityTarget | FVector | Target velocity the linear drive. | PhysicsEngine/ConstraintDrives.h |
|
| XDrive | FConstraintDrive | PhysicsEngine/ConstraintDrives.h |
|
|
| YDrive | FConstraintDrive | PhysicsEngine/ConstraintDrives.h |
|
|
| ZDrive | FConstraintDrive | PhysicsEngine/ConstraintDrives.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetAccelerationMode() |
PhysicsEngine/ConstraintDrives.h | ||
void GetDriveParams
(
float& OutStiffness, |
PhysicsEngine/ConstraintDrives.h | ||
void GetDriveParams
(
FVector& OutStiffness, |
PhysicsEngine/ConstraintDrives.h | ||
bool IsPositionDriveEnabled() |
PhysicsEngine/ConstraintDrives.h | ||
bool IsVelocityDriveEnabled() |
PhysicsEngine/ConstraintDrives.h | ||
void SetAccelerationMode
(
bool bAccelerationMode |
PhysicsEngine/ConstraintDrives.h | ||
void SetDriveParams
(
float InStiffness, |
PhysicsEngine/ConstraintDrives.h | ||
void SetDriveParams
(
const FVector& InStiffness, |
PhysicsEngine/ConstraintDrives.h | ||
void SetLinearPositionDrive
(
bool bEnableXDrive, |
These functions may leave the struct in an invalid state unless calling UpdatePhysX* functions. | PhysicsEngine/ConstraintDrives.h | |
void SetLinearVelocityDrive
(
bool bEnableXDrive, |
PhysicsEngine/ConstraintDrives.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnablePositionDrive_DEPRECATED | PRAGMA_DISABLE_DEPRECATION_WARNINGSuint8 | PhysicsEngine/ConstraintDrives.h |
|