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.

NativeArray ApplyTarget

The target array to apply the corrections.

NativeArray ParticlesCorrections

The array of corrections to apply.

NativeArray ParticlesCorrectionsCount

The count with wich each correction will be divided in order to apply the average of it.