component.collisionsystem
Manages collision detection of collidable entities.
- class CollisionSystem: component.system.System;
Manages collision detection of collidable entities.
Only entities with a CollidableComponent (AND a VolumeComponent) detect collision. However, collisions are detected with every entity with a VolumeComponent.
This way a ship (which has a CollidableComponent) can collide with a projectile (which only has a VolumeComponent), but projectiles can't collide with each other.- this(EntitySystem entitySystem, SpatialSystem spatialSystem);
Construct a CollisionSystem.
Parameters:EntitySystem entitySystem EntitySystem whose entities we're processing. SpatialSystem spatialSystem SpatialSystem to handle coarse collision detection. - void update();
Detect collisions between collidables and entities with volumes.