Added collision detection to physics.ccp