Need Help With the maths for a space game

Blitz3D Forums/Blitz3D Programming/Need Help With the maths for a space game

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

hi all, i just, 5 minuits ago started a spaceship/shooting game and already i am stuck :D anyway the problem is with the rotation of ships, it rotates fine but it won't do accumulated rotation i know why it does it but i dont know how to solve it, i havnt gotten up to vector mathmatics or the like in maths yet....
thanks alot for any help here is my code


Include "def.bb"

Global Camera
Initialize()
PositionEntity Camera, 0,5,-20
player.Ship = CreateShip("Ships\test.ship")
PositionMesh player\Model,0,MeshHeight#(player\Model)/2,0


While Not KeyDown(1)

	If KeyDown(200) Then player\Rotation\x = player\Rotation\x+3
	If KeyDown(208) Then player\Rotation\x = player\Rotation\x-3
	If KeyDown(203) Then player\Rotation\z = player\Rotation\z+3
	If KeyDown(205) Then player\Rotation\z = player\Rotation\z-3
	RotateEntity player\Model,player\Rotation\x,player\Rotation\y,player\Rotation\z
	RenderWorld()
	Flip()
Wend