Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/UConstraintInstanceBlueprintLibr-
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstanceBlueprintLibrary.h |
| Include | #include "PhysicsEngine/ConstraintInstanceBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ConstraintInstanceBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Constraints", Meta=(Keywords="motor"))
static void SetAngularDriveMode
(
UPARAM FConstraintInstanceAccessor & Accessor,
EAngularDriveMode::Type DriveMode
)
Remarks
Switches the angular drive mode between SLERP and Twist And Swing
Parameters
| Name | Description |
|---|---|
| Accessor | Constraint accessor to change |
| DriveMode | The angular drive mode to use. SLERP uses shortest spherical path, but will not work if any angular constraints are locked. Twist and Swing decomposes the path into the different angular degrees of freedom but may experience gimbal lock |