Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPhysicsConstraintComponent
Description
Enables/Disables angular orientation drive. Only relevant if the AngularDriveMode is set to Twist and Swing
| Name | SetAngularOrientationDrive |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintComponent.h |
| Include Path | #include "PhysicsEngine/PhysicsConstraintComponent.h" |
UFUNCTION (BlueprintCallable, Category="Physics|Components|PhysicsConstraint",
Meta=(DeprecatedFunction, DeprecationMessage="Use SetOrientationDriveTwistAndSwing instead."))
void SetAngularOrientationDrive
(
bool bEnableSwingDrive,
bool bEnableTwistDrive
)
Parameters
| Name | Remarks |
|---|---|
| bEnableSwingDrive | Indicates whether the drive for the swing axis should be enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |
| bEnableTwistDrive | Indicates whether the drive for the twist axis should be enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |