c-frame / aframe-physics-system

community-maintained fork of n5ro's aframe-physics-system
https://c-frame.github.io/aframe-physics-system/
MIT License
43 stars 11 forks source link

Fix force-pushable example for the ammo driver #45

Closed Elettrotecnica closed 1 year ago

Elettrotecnica commented 1 year ago

This fixes https://c-frame.github.io/aframe-physics-system/examples/ammo/compound.html, where currently the cursor will disappear upon clicking. This is because its position will be converted from world to local on the position itself, rather than on a slack vector. I have used the force vector because it was already there.

I have also removed the dampening on the force, as this seems to not be necessary (the impulse is actually rather weak now).

diarmidmackenzie commented 1 year ago

Yes, this code came from #37, and is clearly bugged.