Hi I have vectors that store, my nodes rotation,and position, I don't know which I should keep the same and wich ones I should increment/ decrement for my node to move forward, here's my code
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
everything really^^
u will have to set some zero rotation forward vector like
0,0,1 : thats forward when rotation is 0,0,0
now make a matrix and set its roation to ur current rotation.
now u transform your forward vector(here 0,0,1) by this matrix.
that resulting vector is forward. now just normlize it and multiply by ur speed then add to ur current position.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
You don't need to normalize in the previous example though. If you have your direction vector which is normalized and make a matrix out of a rotation vector, it should come out normalized.