struct MAGES::MeshDeformations::ApplyCorrectionsJob¶
Overview¶
Applies the corrections job with the average method. More…
struct ApplyCorrectionsJob: public IJobParallelFor
{
// fields
float RelaxationFactor;
NativeArray ApplyTarget;
NativeArray ParticlesCorrections;
NativeArray ParticlesCorrectionsCount;
// methods
void Execute(int particleIndex);
};
Detailed Documentation¶
Applies the corrections job with the average method.
Fields¶
float RelaxationFactor
The relaxation factor to apply to the corrections.
NativeArrayApplyTarget
The target array to apply the corrections.
NativeArrayParticlesCorrections
The array of corrections to apply.
NativeArrayParticlesCorrectionsCount
The count with wich each correction will be divided in order to apply the average of it.