Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/UPhysicsConstraintComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintComponent.h |
| Include | #include "PhysicsEngine/PhysicsConstraintComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysicsConstraintComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Components|PhysicsConstraint")
void SetLinearPlasticity
(
bool bLinearPlasticity,
float LinearPlasticityThreshold,
EConstraintPlasticityType PlasticityType
)
Remarks
Sets the Linear Plasticity properties
Parameters
| Name | Description |
|---|---|
| bLinearPlasticity | Whether it is possible to reset the target angle from the Linear displacement |
| LinearPlasticityThreshold | Percent deformation needed to reset the rest length of the joint |