Update collider.ts
Update collider.ts

improve formulas + linting
RaananW/Babylon.js,BabylonJS/Babylon.js,sebavan/Babylon.js,BabylonJS/Babylon.js,sebavan/Babylon.js,RaananW/Babylon.js,RaananW/Babylon.js,sebavan/Babylon.js,BabylonJS/Babylon.js