lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 301 forks source link

getRotation? #54

Closed ettubrutesbro closed 7 years ago

ettubrutesbro commented 7 years ago

i saw it mentioned in #10 that a getRotation() was being worked on for rigidbody, but don't see it in source anywhere....i want to use setRotation() to animate an object's rotation, but without getRotation() am not sure how to get the correct starting point. maybe there's another way to do that...?

anyways, been using oimo for a week and think this is great! thank you for all your work porting and maintaining :)

ettubrutesbro commented 7 years ago

oh, i fixed my issue by using setQuaternion() instead with .setFromEuler, so i could just use getQuaternion as a starting point....false alarm, but keep up the awesome work!