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" |
UFUNCTION (BlueprintCallable, Category="Physics|Components|PhysicsConstraint",
Meta=(DeprecatedFunction, DeprecationMessage="Use SetOrientationDriveTwistAndSwing instead."))
void SetAngularOrientationDrive
(
bool bEnableSwingDrive,
bool bEnableTwistDrive
)
Remarks
Enables/Disables angular orientation drive. Only relevant if the AngularDriveMode is set to Twist and Swing
Parameters
| Name | Description |
|---|---|
| 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 |