FConstraintDrive

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintDrives.h

Include

#include "PhysicsEngine/ConstraintDrives.h"

Syntax

struct FConstraintDrive

Variables

Name Description

Public variable

uint8: 1

 

bEnablePositionDrive

Enables/Disables position drive (orientation if using angular drive)

Public variable

uint8: 1

 

bEnableVelocityDrive

Enables/Disables velocity drive (angular velocity if using angular drive)

Public variable

float

 

Damping

The damping strength of the drive. Force proportional to the velocity error.

Public variable

float

 

MaxForce

The force limit of the drive.

Public variable

float

 

Stiffness

The spring strength of the drive. Force proportional to the position error.

Constructors

Name Description

Public function

FConstraintDrive()

Functions

Name Description

Public function Const

void

 

UpdatePhysXDrive_AssumesLocked

(
    physx::PxD6Joint* Joint,
    int DriveType,
    bool bDriveEnabled
)

Updates physx drive with properties from unreal

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss