struct MAGES::MeshDeformations::AverageCoMContributionsJob

Overview

Averages the contributions to the Center Of Mass of each particle in the simulation mesh. More…

struct AverageCoMContributionsJob: public IJobParallelFor
{
    // fields

    NativeArray SimulationMeshTotalMass;
    NativeArray SimulationMeshCoM;

    // methods

    void Execute(int descIndex);
};

Detailed Documentation

Averages the contributions to the Center Of Mass of each particle in the simulation mesh.

Fields

NativeArray SimulationMeshTotalMass

The total mass of each simulation mesh.

NativeArray SimulationMeshCoM

The Center Of Mass of each simulation mesh.