Totally rewroat the code for collision of solid objects. Also added an example applic...