Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FPBDRigidsEvolutionGBF
Description
[EXPERIMENTAL] Apply a momentumless correction to the particle transform, usually as a result of a server correction. This will shift the particle by the supplied delta and handle updating of friction anchors or anything else that might prevent or undo the shift. If bApplyToConnectedBodies is true, any particle attached by a joint with locked linear limits will also get moved. NOTE: must be called prior to Integrate() to be effective. NOTE: be careful with bApplyToConnectedBodies - only one particle in the connected graph should have ApplyParticleTransformCorrectionDelta called on it, otherwise you will get multiple particles trying to recorrect each other leading to very strange behaviour. Use
| Name | ApplyParticleTransformCorrectionDelta |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDRigidsEvolutionGBF.h |
| Include Path | #include "Chaos/PBDRigidsEvolutionGBF.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/PBDRigidsEvolutionGBF.cpp |
void ApplyParticleTransformCorrectionDelta
(
FGeometryParticleHandle * InParticle,
const FVec3 & InPosDelta,
const FVec3 & InRotDelta,
const bool bApplyToConnectedBodies,
const bool bInRecalculateFrictionOnConnectedBodies,
const TArray < FParticleID > & ExcludeConnections
)
Parameters
| Name | Remarks |
|---|---|
| ExcludeConnections | to exclude particles from being corrected, this includes particles connected to the excluded particle as long as they are not connected to a non-excluded particle. |