There is no movement on the Y plane except rotation, which is ‘heading’ below.
to strafe right I am trying:
xpos += (float) Math.cos(heading * CubeWars.piover180) * speed;
zpos += (float) Math.sin(heading * CubeWars.piover180) * speed;
At game launch, strfing right works, but the moment I rotate on the Y axis, strafing no longer works.
Where is my math wrong? (I was a Bio major who only took calculus in 1985, so laugh it up!
)