![]() |
Obi
7.0.5
Unified particle physics for Unity
|
Public Member Functions | |
| GraphColoring (int particleCount=0) | |
| void | Clear () |
| void | AddConstraint (int[] particles) |
| IEnumerator | Colorize (string progressDescription, List< int > colors) |
Public Attributes | |
| IReadOnlyList< int > | particleIndices => m_ParticleIndices.AsReadOnly() |
| IReadOnlyList< int > | constraintIndices => m_ConstraintIndices.AsReadOnly() |
General greedy graph coloring algorithm for constraints. Input:
The output is a color for each constraint. Constraints of the same color are guaranteed to not share any partices.