I am not entirely sure on how to phrase this question.
Imagine I have an object in 3D space. I got its position, the rotation and the direction it is facing each represented as a vector.
Now I want to move this object sideways, to the left and to the right.
How do I calculate the direction vector I have to move?
I figured it out. I try to explain it to the best of my abilities, however I am not great at maths.
I created a function which does exactly this using threeJS
I would be happy for suggestions and it would be great if someone could format this answer properly, for I don't know how to write this properly. Thank you guys for the help :)