commit before redoing triangle distance code
commit before redoing triangle distance code
improved collision detection