Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPhysicsConstraintComponent
Description
Set the projection settings for use when projection is enabled. See SetProjectionEnabled. For ragdolls you usually require that ProjectionLinearAlpha and ProjectionAngularAlpha be zero. They are most useful for cosmetic chains etc. ProjectionLinearTolerance and ProjectionAngularTolerance are emergency error recovery settings and should only rarely affect the simulation. If the simulation is significantly affected by the Tolerance settings, it likely indicates a setup stability issue.
| Name | SetProjectionParams |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintComponent.h |
| Include Path | #include "PhysicsEngine/PhysicsConstraintComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysicsConstraintComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Components|PhysicsConstraint")
void SetProjectionParams
(
float ProjectionLinearAlpha,
float ProjectionAngularAlpha,
float ProjectionLinearTolerance,
float ProjectionAngularTolerance
)
Parameters
| Name | Remarks |
|---|---|
| ProjectionLinearAlpha | Controls the semi-physical correction of linear error remaining after the joint solve. Will add energy into the system. Best for joint chains connected to a kinematic. |
| ProjectionAngularAlpha | Controls the semi-physical correction of angular error remaining after the joint solve. Will add energy into the system. Best for joint chains connected to a kinematic. |
| ProjectionLinearTolerance | Linear errors above this will be corrected with a non-physical teleport. |
| ProjectionAngularTolerance | Angular errors above this will be corrected with a non-physical teleport. |