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¶
NativeArraySimulationMeshTotalMass
The total mass of each simulation mesh.
NativeArraySimulationMeshCoM
The Center Of Mass of each simulation mesh.