Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UConstraintInstanceBlueprintLibr-
Description
Enables/Disables angular velocity twist and swing drive. Only relevant if the AngularDriveMode is set to Twist and Swing
| Name | SetAngularVelocityDriveTwistAndSwing |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstanceBlueprintLibrary.h |
| Include Path | #include "PhysicsEngine/ConstraintInstanceBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ConstraintInstanceBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Constraints", Meta=(Keywords="motor target"))
static void SetAngularVelocityDriveTwistAndSwing
(
UPARAM FConstraintInstanceAccessor & Accessor,
bool bEnableTwistDrive,
bool bEnableSwingDrive
)
Parameters
| Name | Remarks |
|---|---|
| Accessor | Constraint accessor to change |
| bEnableTwistDrive | Indicates whether the drive for the twist axis should be enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |
| bEnableSwingDrive | Indicates whether the drive for the swing axis should be enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |