struct MAGES::MeshDeformations::SolveVolumeConstraintsJob¶
Overview¶
Solves volume constraints. More…
struct SolveVolumeConstraintsJob: public IJobParallelFor
{
// fields
float TimeStepSquared;
NativeArray ParticlesEnabled;
NativeArray ParticlesPredictedPosition;
NativeArray ParticlesInverseMass;
NativeArray VolumeConstraintsEnabled;
NativeArray VolumeConstraintsBreakable;
NativeArray VolumeConstraintsPhysicsMaterialIndex;
NativeArray VolumeConstraintsParticleA;
NativeArray VolumeConstraintsParticleB;
NativeArray VolumeConstraintsParticleC;
NativeArray VolumeConstraintsParticleD;
NativeArray VolumeConstraintsRestVolume;
NativeArray VolumeConstraintsSimulationMeshDescriptorIndex;
NativeArray SimulationMeshDescriptors;
NativeArray VolumeConstraintsEnabledStateHasChanged;
NativeArray<PhysicsMaterial> PhysicsMaterials;
NativeArray ParticleCorrections;
NativeArray ParticleCorrectionsCount;
NativeArray ParticleLocks;
// methods
void Execute(int volumeConstraintIndex);
};
Detailed Documentation¶
Solves volume constraints.
Fields¶
float TimeStepSquared
The simulation time step squared.
NativeArrayParticlesEnabled
The enabled particles.
NativeArrayParticlesPredictedPosition
THe predicted particle positions.
NativeArrayParticlesInverseMass
The inverse mass of the particles.
NativeArrayVolumeConstraintsEnabled
The enabled volume constraints.
NativeArrayVolumeConstraintsBreakable
The breakable volume constraints.
NativeArrayVolumeConstraintsPhysicsMaterialIndex
The physics material index of the volume constraints.
NativeArrayVolumeConstraintsParticleA
The volume constraints particle A index.
NativeArrayVolumeConstraintsParticleB
The volume constraints particle B index.
NativeArrayVolumeConstraintsParticleC
The volume constraints particle C index.
NativeArrayVolumeConstraintsParticleD
The volume constraints particle D index.
NativeArrayVolumeConstraintsRestVolume
The volume constraints volume at rest configuration.
NativeArrayVolumeConstraintsSimulationMeshDescriptorIndex
The volume constraints simulation mesh descriptor index.
NativeArraySimulationMeshDescriptors
The simulation mesh descriptors.
NativeArrayVolumeConstraintsEnabledStateHasChanged
The flags indicating if the volume constraints enabled state has changed.
NativeArray<PhysicsMaterial> PhysicsMaterials
The physics materials.
NativeArrayParticleCorrections
The particle corrections buffer.
NativeArrayParticleCorrectionsCount
The particle corrections count.
NativeArrayParticleLocks
The particle locks, for interlocked operations.