Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/UPhysicsConstraintComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintComponent.h |
| Include | #include "PhysicsEngine/PhysicsConstraintComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysicsConstraintComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Components|PhysicsConstraint")
void SetAngularDriveMode
(
EAngularDriveMode::Type DriveMode
)
Remarks
Switches the angular drive mode between SLERP and Twist And Swing
Parameters
| Name | Description |
|---|---|
| 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 |