n5ro / aframe-physics-system

Physics system for A-Frame VR, built on CANNON.js.
https://n5ro.github.io/aframe-physics-system/
MIT License
505 stars 136 forks source link

Imperfect collisions with moving static body #180

Open LorenzoVonMatterhom opened 3 years ago

LorenzoVonMatterhom commented 3 years ago

I was trying to make a little tennis demo and play around with it (on the webXR emulator) but apparently collisions between the ball (a dynamic-body) and the racket (static-body attached to the controller) are not perfect and its hard even to move the ball slowly since it goes inside the racket and sometimes perforates it completely. Is this normal expected behavior for the performance a JS physics engine can have no matter how much i raise the number of iterations?

Here is a little example: https://codepen.io/LorenzoVonMatterhorn/pen/poEeJGg?editors=1000