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="soft stiffness damping restitution contact distance"))
static void GetAngularSoftSwingLimitParams
(
UPARAM FConstraintInstanceAccessor & Accessor,
bool & bSoftSwingLimit,
float & SwingLimitStiffness,
float & SwingLimitDamping,
float & SwingLimitRestitution,
float & SwingLimitContactDistance
)
Remarks
Gets Constraint Angular Soft Swing Limit parameters
Parameters
| Name | Description |
|---|---|
| Accessor | Constraint accessor to query |
| bSoftSwingLimit | True is the swing limit is soft |
| SwingLimitStiffness | Stiffness of the soft swing limit. Only used when Soft limit is on ( positive value ) |
| SwingLimitDamping | Damping of the soft swing limit. Only used when Soft limit is on ( positive value ) |
| SwingLimitRestitution | Controls the amount of bounce when the constraint is violated. A restitution value of 1 will bounce back with the same velocity the limit was hit. A value of 0 will stop dead. |
| SwingLimitContactDistance | Determines how close to the limit we have to get before turning the joint on. Larger value will be more expensive, but will do a better job not violating constraints. A smaller value will be more efficient, but easier to violate. |