UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLinearDriveConstraint Struct Reference

#include <ConstraintDrives.h>

Public Member Functions

ENGINE_API FLinearDriveConstraint ()
 
bool IsPositionDriveEnabled () const
 
bool IsVelocityDriveEnabled () const
 
ENGINE_API void SetLinearPositionDrive (bool bEnableXDrive, bool bEnableYDrive, bool bEnableZDrive)
 
ENGINE_API void SetLinearVelocityDrive (bool bEnableXDrive, bool bEnableYDrive, bool bEnableZDrive)
 
ENGINE_API void SetDriveParams (float InStiffness, float InDamping, float InForceLimit)
 
ENGINE_API void SetDriveParams (const FVector &InStiffness, const FVector &InDamping, const FVector &InForceLimit)
 
ENGINE_API void GetDriveParams (float &OutStiffness, float &OutDamping, float &OutForceLimit) const
 
ENGINE_API void GetDriveParams (FVector &OutStiffness, FVector &OutDamping, FVector &OutForceLimit) const
 
ENGINE_API void SetAccelerationMode (bool bAccelerationMode)
 
ENGINE_API bool GetAccelerationMode () const
 

Public Attributes

FVector PositionTarget
 
FVector VelocityTarget
 
FConstraintDrive XDrive
 
FConstraintDrive YDrive
 
FConstraintDrive ZDrive
 
bool bAccelerationMode = true
 

Detailed Description

Linear Drive

Constructor & Destructor Documentation

◆ FLinearDriveConstraint()

FLinearDriveConstraint::FLinearDriveConstraint ( )

Member Function Documentation

◆ GetAccelerationMode()

bool FLinearDriveConstraint::GetAccelerationMode ( ) const

◆ GetDriveParams() [1/2]

void FLinearDriveConstraint::GetDriveParams ( float OutStiffness,
float OutDamping,
float OutForceLimit 
) const

◆ GetDriveParams() [2/2]

void FLinearDriveConstraint::GetDriveParams ( FVector OutStiffness,
FVector OutDamping,
FVector OutForceLimit 
) const

◆ IsPositionDriveEnabled()

bool FLinearDriveConstraint::IsPositionDriveEnabled ( ) const
inline

◆ IsVelocityDriveEnabled()

bool FLinearDriveConstraint::IsVelocityDriveEnabled ( ) const
inline

◆ SetAccelerationMode()

void FLinearDriveConstraint::SetAccelerationMode ( bool  bAccelerationMode)

◆ SetDriveParams() [1/2]

void FLinearDriveConstraint::SetDriveParams ( const FVector InStiffness,
const FVector InDamping,
const FVector InForceLimit 
)

◆ SetDriveParams() [2/2]

void FLinearDriveConstraint::SetDriveParams ( float  InStiffness,
float  InDamping,
float  InForceLimit 
)

◆ SetLinearPositionDrive()

void FLinearDriveConstraint::SetLinearPositionDrive ( bool  bEnableXDrive,
bool  bEnableYDrive,
bool  bEnableZDrive 
)

◆ SetLinearVelocityDrive()

void FLinearDriveConstraint::SetLinearVelocityDrive ( bool  bEnableXDrive,
bool  bEnableYDrive,
bool  bEnableZDrive 
)

Member Data Documentation

◆ bAccelerationMode

bool FLinearDriveConstraint::bAccelerationMode = true

Whether the specified strength is acceleration or force. (default: acceleration)

◆ PositionTarget

FVector FLinearDriveConstraint::PositionTarget

Target position the linear drive.

◆ VelocityTarget

FVector FLinearDriveConstraint::VelocityTarget

Target velocity the linear drive.

◆ XDrive

FConstraintDrive FLinearDriveConstraint::XDrive

◆ YDrive

FConstraintDrive FLinearDriveConstraint::YDrive

◆ ZDrive

FConstraintDrive FLinearDriveConstraint::ZDrive

The documentation for this struct was generated from the following files: