WIP: Primitive collision detection.