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 SetAngularPlasticity
(
bool bAngularPlasticity,
float AngularPlasticityThreshold
)
Remarks
Sets the Angular Plasticity properties
Parameters
| Name | Description |
|---|---|
| bAngularPlasticity | Whether it is possible to reset the target angle from the angular displacement |
| AngularPlasticityThreshold | Degrees needed to reset the rest state of the joint |