Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UConstraintInstanceBlueprintLibr-
Description
Gets whether angular orientation drive are enabled. Only relevant if the AngularDriveMode is set to Twist and Swing
| Name | GetOrientationDriveTwistAndSwing |
| 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 GetOrientationDriveTwistAndSwing
(
UPARAM FConstraintInstanceAccessor & Accessor,
bool & bOutEnableTwistDrive,
bool & bOutEnableSwingDrive
)
Parameters
| Name | Remarks |
|---|---|
| Accessor | Constraint accessor to query |
| bOutEnableTwistDrive | Indicates whether the drive for the twist axis is enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |
| bOutEnableSwingDrive | Indicates whether the drive for the swing axis is enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |