So, what i’m trying to make is a kind of real physics emulation so when I rotate my device the “gravity” changes accordingly so that it is always the “real” gravity (always pointing down). I have made a prototype in a webplayer but see this only has 8 directions were I need the accelerometer to give like infinite so some kind of formula to get the vector3 right?
right now I have:
Up = (0,10,0)
Down = (0,-10,0)
Left =(-10,0,0)
Right =(10,0,0)
UpRight = (5,5,0)
Upleft = (-5,5,0)
DownRight = (5,-5,0)
DownLeft = (-5,-5,0)
And it seems to work well, maybe I’m crazy and it should be like (10,10,0)?
This is the demo I made(imagine the Dpad is like the rotation of a phone…)
If someone could help it would be great
You would have my eternal love :mrgreen:
(Note I tried just having it rotate the orb and then add relative force but this is no good cause it won’t spin)