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.
NativeArrayParticlesEnabled
The particles enabled state.
NativeArrayParticlesPredictedPosition
The particles predicted position.
NativeArrayParticlesLocalRestPosition
The local position based on the center of mass of each particle in the rest configuration.
NativeArrayParticlesInverseMass
The inverse mass of the particles.
NativeArrayShapeMatchingConstraintsEnabled
The shape matching constraints enabled state.
NativeArrayShapeMatchingConstraintsBreakable
The shape matching constraints breakable state.
NativeArrayShapeMatchingConstraintsParticle
The shape matching constraints particle indices.
NativeArrayShapeMatchingConstraintsPhysicsMaterialIndex
The shape matching constraints physics material index.
NativeArrayShapeMatchingConstraintsSimulationMeshDescriptorIndex
THe shape matching constraints simulation mesh descriptor index.
NativeArrayShapeMatchingConstraintsEnabledStateHasChanged
The flags indicating if the enabled state of the shape matching constraints has changed.
NativeArraySimulationMeshDescriptors
The simulation mesh descriptors.
NativeArray<PhysicsMaterial> PhysicsMaterials
The physics materials.
NativeArrayCoMPosition
The center of mass position of each simulation mesh.
NativeArrayCoMRotation
The center of mass rotation of each simulation mesh.
NativeArrayParticleCorrections
The particle corrections.
NativeArrayParticleCorrectionsCount
The particle corrections count.
NativeArrayParticleLocks
The particle locks for interlocked operations.