I'm messing with different examples to learn flight aspects in DBP. I found an example in this forum and replaced the simple object with a model of a jet. Now it worked fine exempt one little problem...the Jet is flying backwards and i'm not sure how to get it turned around! I've tried to rotate object command but it messes with the one already in the script. I'm sure its the math somewhere, i need to rotate it 180 degrees so that it's flying forward, can anyone help? Here's the code..
sync on : sync rate 60 : hide mouse : make camera 1 : backdrop on 1 : color backdrop 1, 0
make matrix 1,5000,5000,50,50
load object "jet.x", 1
do
ya1#=ya1#+mouseMoveX()*0.1 : xa1#=xa1#+mouseMoveY()*0.1
ya1#=wrapvalue(ya1#)
x1#=object position x(1)
y1#=object position y(1)
z1#=object position z(1)
ay1#=object angle y(1)
set camera to follow 1, x1#,y1#,z1#,ay1#,50,20,10,1
move object 1, 1
rotate object 1, xa1#-(xa1#*2),ya1#,0
sync
loop
Illusion
X-Fleet.net