Physics Shapes (#306)

* Removed BoundingBoxComponent.

* Updated prototypes to use refactored CollidableComponent.

* Renamed ICollidable to IPhysBody.
Moved ICollidable to the Shared/Physics namespace.

* Migrated more yaml files to use PhysShapes.

* Updated YAML to use the new list-of-bodies system.

* Updated the new prototypes.

* Update submodule

* Update submodule again, whoops
This commit is contained in:
Acruid
2019-09-03 13:14:04 -07:00
committed by Pieter-Jan Briers
parent 5aafe89d95
commit 9353a060f2
34 changed files with 148 additions and 90 deletions

View File

@@ -1,17 +1,23 @@
using System;
using JetBrains.Annotations;
namespace Content.Shared.Physics
{
/// <summary>
/// Defined collision groups for the physics system.
/// </summary>
[Flags]
[Flags, PublicAPI]
public enum CollisionGroup
{
None = 0,
Grid = 1, // Walls
Mob = 2, // Mobs, like the player or NPCs
Fixture = 4, // wall fixtures, like APC or posters
Items = 8 // Items on the ground
None = 0,
Grid = 1 << 0, // Walls
Mob = 1 << 1, // Mobs, like the player or NPCs
Fixture = 1 << 2, // wall fixtures, like APC or posters
Items = 1 << 3, // Items on the ground
Furniture = 1 << 4, // Tables, machines
// 32 possible groups
MobMask = Grid | Mob | Furniture,
AllMask = -1,
}
}