Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FConstraintInstance
Description
This allows the most common drive parameters to be set in one call, avoiding lock overheads etc. Note that the individual drive elements will be enabled/disabled depending on the strength/damping values passed in.
Angular values are passed in as (swing, twist, slerp)
| Name | SetDriveParams |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstance.h |
| Include Path | #include "PhysicsEngine/ConstraintInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ConstraintInstance.cpp |
void SetDriveParams
(
const FVector & InPositionStrength,
const FVector & InVelocityStrength,
const FVector & InForceLimit,
const FVector & InAngularSpring,
const FVector & InAngularDamping,
const FVector & InTorqueLimit,
EAngularDriveMode::Type InAngularDriveMode
)