Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/FConstraintInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstance.h |
| Include | #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
)
Remarks
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)