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 GetLinearSoftLimitParams
(
UPARAM FConstraintInstanceAccessor & Accessor,
bool & bSoftLinearLimit,
float & LinearLimitStiffness,
float & LinearLimitDamping,
float & LinearLimitRestitution,
float & LinearLimitContactDistance
)
Remarks
Gets Constraint Linear Soft Limit parameters
Parameters
| Name | Description |
|---|---|
| Accessor | Constraint accessor to query |
| bSoftLinearLimit | True is the Linear limit is soft |
| LinearLimitStiffness | Stiffness of the soft Linear limit. Only used when Soft limit is on ( positive value ) |
| LinearLimitDamping | Damping of the soft Linear limit. Only used when Soft limit is on ( positive value ) |
| LinearLimitRestitution | 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. |
| LinearLimitContactDistance | 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. |