Try to come to terms with cannon.js.
Homebrew physics, again.