I’m trying to implement space rocket movement like pitch, yaw, roll and accelerate with key bindings.
I’ve modified the forward vector for 3D space like;
normalize([sin(rotation.y), -tan(rotation.x), cos(rotation.y)])
but it is still problematic. How can i achieve that problem?
My project’s github link is solarsystem-metal. You can download it for testing. After you run macOS version, you can change the focus camera with pressing 1 and 4 keys and rocket movement with w,a,s,d,q,e and space.
Here is my little rocket
My other question is about the Right Vector;
return [forwardVector.z, forwardVector.y, -forwardVector.x]
I dont understand the usage of this, could you explain with more detail?