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.
NativeArrayParticlesPredictedPosition
The predicted position of each particle.
NativeArrayParticlesPosition
The current position of each particle.
NativeArrayParticlesVelocity
The velocity of each particle.