Open jdjuli opened 2 years ago
I'm working on a new version of grabbable that acts more like reparenting using matrix multiplication
Thank you so much :)
Sorry for the late response. I've been searching through my notes and I found out this page that might be helpful: https://tipsfordev.com/using-superhands-component-in-a-frame-is-it-possible-to-rotate-grabbed-objects-without-using-physics
Hi!
While using the grabbable component without physics I found out that if the grabbed entity is a child of another entity which has an arbitrary orientation (throught rotation component), the grabbed entity doesn't follow the hands nor the cursor.
I've made a basic example to illustrate the problem (glitch scene & code). On it, you can't move the green box to the left side of the screen without moving arround.
By testing different rotations, I discovered that the displacement of the hands (or cursor) is applied locally to the grabbed entity without considering the transformations performed to it's parents.
I'm using the following versions: