Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/UConstraintInstanceBlueprintLibr-
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstanceBlueprintLibrary.h |
| Include | #include "PhysicsEngine/ConstraintInstanceBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ConstraintInstanceBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Constraints",
Meta=(Keywords="swing twist motion free limited locked"))
static void GetAngularLimits
(
UPARAM FConstraintInstanceAccessor & Accessor,
TEnumAsByte < EAngularConstraintMotion > & Swing1MotionType,
float & Swing1LimitAngle,
TEnumAsByte < EAngularConstraintMotion > & Swing2MotionType,
float & Swing2LimitAngle,
TEnumAsByte < EAngularConstraintMotion > & TwistMotionType,
float & TwistLimitAngle
)
Remarks
Gets Constraint Angular Motion Ranges
Parameters
| Name | Description |
|---|---|
| Accessor | Constraint accessor to query |
| Swing1MotionType | Type of swing motion ( first axis ) |
| Swing1LimitAngle | Size of limit in degrees in [0, 180] range |
| Swing2MotionType | Type of swing motion ( second axis ) |
| Swing2LimitAngle | Size of limit in degrees in [0, 180] range |
| TwistMotionType | Type of twist motion |
| TwistLimitAngle | Size of limit in degrees in [0, 180] range |