struct MAGES::MeshDeformations::SolveShapeMatchingConstraintsJob

Overview

Solves shape matching constraints. More…

struct SolveShapeMatchingConstraintsJob: public IJobParallelFor
{
    // fields

    float TimeStepSquared;
    NativeArray ParticlesEnabled;
    NativeArray ParticlesPredictedPosition;
    NativeArray ParticlesLocalRestPosition;
    NativeArray ParticlesInverseMass;
    NativeArray ShapeMatchingConstraintsEnabled;
    NativeArray ShapeMatchingConstraintsBreakable;
    NativeArray ShapeMatchingConstraintsParticle;
    NativeArray ShapeMatchingConstraintsPhysicsMaterialIndex;
    NativeArray ShapeMatchingConstraintsSimulationMeshDescriptorIndex;
    NativeArray ShapeMatchingConstraintsEnabledStateHasChanged;
    NativeArray SimulationMeshDescriptors;
    NativeArray<PhysicsMaterial> PhysicsMaterials;
    NativeArray CoMPosition;
    NativeArray CoMRotation;
    NativeArray ParticleCorrections;
    NativeArray ParticleCorrectionsCount;
    NativeArray ParticleLocks;

    // methods

    void Execute(int shapeMatchingConstraintIndex);
};

Detailed Documentation

Solves shape matching constraints.

Fields

float TimeStepSquared

The simulation time step squared.

NativeArray ParticlesEnabled

The particles enabled state.

NativeArray ParticlesPredictedPosition

The particles predicted position.

NativeArray ParticlesLocalRestPosition

The local position based on the center of mass of each particle in the rest configuration.

NativeArray ParticlesInverseMass

The inverse mass of the particles.

NativeArray ShapeMatchingConstraintsEnabled

The shape matching constraints enabled state.

NativeArray ShapeMatchingConstraintsBreakable

The shape matching constraints breakable state.

NativeArray ShapeMatchingConstraintsParticle

The shape matching constraints particle indices.

NativeArray ShapeMatchingConstraintsPhysicsMaterialIndex

The shape matching constraints physics material index.

NativeArray ShapeMatchingConstraintsSimulationMeshDescriptorIndex

THe shape matching constraints simulation mesh descriptor index.

NativeArray ShapeMatchingConstraintsEnabledStateHasChanged

The flags indicating if the enabled state of the shape matching constraints has changed.

NativeArray SimulationMeshDescriptors

The simulation mesh descriptors.

NativeArray<PhysicsMaterial> PhysicsMaterials

The physics materials.

NativeArray CoMPosition

The center of mass position of each simulation mesh.

NativeArray CoMRotation

The center of mass rotation of each simulation mesh.

NativeArray ParticleCorrections

The particle corrections.

NativeArray ParticleCorrectionsCount

The particle corrections count.

NativeArray ParticleLocks

The particle locks for interlocked operations.