struct MAGES::MeshDeformations::PostSolveJob

Overview

Updates velocities.

Applies internal forces.

Updates positions or applies sleeping. More…

struct PostSolveJob: public IJobParallelFor
{
    // fields

    float TimeStep;
    float SleepVelocityThresholdSquared;
    NativeArray ParticlesPredictedPosition;
    NativeArray ParticlesPosition;
    NativeArray ParticlesVelocity;

    // methods

    void Execute(int particleIndex);
};

Detailed Documentation

Updates velocities.

Applies internal forces.

Updates positions or applies sleeping.

Fields

float TimeStep

The simulation time step.

float SleepVelocityThresholdSquared

The velocity below which a particle is considered to be sleeping.

NativeArray ParticlesPredictedPosition

The predicted position of each particle.

NativeArray ParticlesPosition

The current position of each particle.

NativeArray ParticlesVelocity

The velocity of each particle.