csharp
public sealed class PhysicsLayers.BuilderCollects layers and the collision matrix, then freezes them.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Everything collides with everything until told otherwise, which is the default a person expects and the one that fails visibly — a matrix that started empty would produce a world in which nothing touches anything and no error anywhere.
Methods (4)
public PhysicsLayers.Builder Add(string name, PhysicsBroadPhase broadPhase = Moving)Adds a layer.
public PhysicsLayers.Builder Separate(string first, string second)Stops two layers from colliding, in both directions.
public PhysicsLayers.Builder Join(string first, string second)Lets two layers collide again, in both directions.
public PhysicsLayers Build()Freezes the table.
Used by (4)
- PhysicsLayerTestsVixen.Physics.Tests
- PhysicsLayersVixen.Physics
- PhysicsQueryTestsVixen.Physics.Tests
- PhysicsWorldTestsVixen.Physics.Tests