BlinkerGuy
05-19-2005, 10:22 AM
Hello.
This is stopping my gameprojects dead. The gimble lock.
I've been googling for an article like this but none of them appears to be helpful..
I am trying to make a flight simulator game but I don't know anything about advanced maths.
Using the sample diagram code I display:
-------START-------
Declare PosX, PosY, PosZ variables
Declare RotX, RotY, RotZ variables
start loop
display camera position and angles
if w key pressed then
insert code to move foward
end if
if s key pressed then
insert code to move backward
end if
if a key pressed then
RotY=RotY-1
end if
if d key pressed then
RotY=RotY+1
end if
if e key pressed then
RotX=RotX-1
end if
if c key pressed then
RotX=RotX+1
end if
if z key pressed then
RotZ=RotZ-1
end if
if x key pressed then
RotZ=RotZ+1
end if
---
can anyone help?
This is stopping my gameprojects dead. The gimble lock.
I've been googling for an article like this but none of them appears to be helpful..
I am trying to make a flight simulator game but I don't know anything about advanced maths.
Using the sample diagram code I display:
-------START-------
Declare PosX, PosY, PosZ variables
Declare RotX, RotY, RotZ variables
start loop
display camera position and angles
if w key pressed then
insert code to move foward
end if
if s key pressed then
insert code to move backward
end if
if a key pressed then
RotY=RotY-1
end if
if d key pressed then
RotY=RotY+1
end if
if e key pressed then
RotX=RotX-1
end if
if c key pressed then
RotX=RotX+1
end if
if z key pressed then
RotZ=RotZ-1
end if
if x key pressed then
RotZ=RotZ+1
end if
---
can anyone help?