Improvements on object collision detection