AdaRoseCannon / aframe-xr-boilerplate

Get started quickly with VR and AR using AFrame
https://aframe-xr-starterkit.glitch.me/
MIT License
110 stars 20 forks source link

Specify angularVelocity and linearVelocity on rigidBody when putdown #11

Closed vincentfretin closed 1 year ago

vincentfretin commented 1 year ago

I put back setting angularVelocity and linearVelocity that you did initially with ammo, but was commented when you switched to physx. I tested launching the pot like a frisbee, this works far better with this code. Note that pose.angularVelocity and pose.linearVelocity are of type https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly but it seems to work without issue.

AdaRoseCannon commented 1 year ago

Neat! I missed that feature!