struct MAGES::MeshDeformations::ResetCoMsJob

Overview

Reset the default values of the CoM, Covariance Matrix and Total Mass of the simulation mesh, before being recalculated. More…

struct ResetCoMsJob: public IJobParallelFor
{
    // fields

    NativeArray SimulationMeshTotalMass;
    NativeArray SimulationMeshCoM;
    NativeArray SimulationMeshCovarianceMatrix;

    // methods

    void Execute(int descIndex);
};

Detailed Documentation

Reset the default values of the CoM, Covariance Matrix and Total Mass of the simulation mesh, before being recalculated.

Fields

NativeArray SimulationMeshTotalMass

The total mass of each simulation mesh.

NativeArray SimulationMeshCoM

The center of mass of each simulation mesh.

NativeArray SimulationMeshCovarianceMatrix

The covariance matrix of each simulation mesh.