Assignment 3

Collision System (24/30)


In the past few classes I have attemped to demonstrate what the System part of ECS looks like. There are many Systems we could build but for this project let's just do a simple Collision System.

Build two new classes CollisionComponent and CollisionSystem. The CollisionComponent contains data regarding the type of collision object is being used (sphere, AABB, plane, ...). The ComponentSystem will be tasked with job of doing the math behind collisions.

Let's just do a simple collision. Just in case your forgot how to do the collision response let's just bounce off each other.

Extra: Create the code to automatically to build an AABB around an Object.