struct MAGES::MeshDeformations::ApplyContactFrictionJob¶
Overview¶
Applies contact friction to the particles. More…
struct ApplyContactFrictionJob: public IJobParallelForDefer
{
// fields
float ParticleRadius;
NativeArray<ContactPair> ContactPairs;
NativeArray SimulationMeshDescriptors;
NativeArray<PhysicsMaterial> PhysicsMaterials;
NativeArray ParticlesSimulationMeshDescriptorIndex;
NativeArray ParticlesPhysicsMaterialIndex;
NativeArray ParticlesEnabled;
NativeArray ParticlesPredictedPositionBeforeCollisions;
NativeArray ParticlesPredictedPositionAfterCollisions;
NativeArray ParticlesPhase;
NativeArray ParticlesInverseMass;
NativeArray ParticleCorrections;
NativeArray ParticleCorrectionsCount;
NativeArray ParticleLocks;
// methods
void Execute(int contactIndex);
};
Detailed Documentation¶
Applies contact friction to the particles.
Fields¶
float ParticleRadius
The particle radius.
NativeArray<ContactPair> ContactPairs
The contact pairs to resolve.
NativeArraySimulationMeshDescriptors
The simulation mesh descriptors.
NativeArray<PhysicsMaterial> PhysicsMaterials
The physics materials.
NativeArrayParticlesSimulationMeshDescriptorIndex
THe index of the simulation mesh descriptor for each particle.
NativeArrayParticlesPhysicsMaterialIndex
The index of the physics material for each particle.
NativeArrayParticlesEnabled
The enabled state of the particles.
NativeArrayParticlesPredictedPositionBeforeCollisions
The predicted position of the particles before contact solving.
NativeArrayParticlesPredictedPositionAfterCollisions
The predicted position of the particles after contact solving.
NativeArrayParticlesPhase
The phase of the particles.
NativeArrayParticlesInverseMass
The inverse mass of the particles.
NativeArrayParticleCorrections
The corrections for the particles.
NativeArrayParticleCorrectionsCount
The number of corrections for each particle.
NativeArrayParticleLocks
The locking array for interlocked operations.