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 SetOrientationDriveTwistAndSwing
(
bool bEnableTwistDrive,
bool bEnableSwingDrive
)
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 |