Reset transform matrix.
Added collision detection.