Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Need help with Mousesttering Aircraft Rudders

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 14th Sep 2004 01:34 Edited at: 14th Sep 2004 22:06
I have got my VTOL aircraft to steer left and right and to pitch up and down with the mouse but I can't get the plane to spin left or right on its axis properly, the rudders don't work properly.

Can anyone help please? here is the code

Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 16th Sep 2004 06:24
I only skimmed it really quickly, but it seems like what you need is to change the z position angle of the plane. This would spin it around.

I'll take a look in a couple hours when i get home again.

- Merix
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 16th Sep 2004 07:00 Edited at: 16th Sep 2004 09:50
Thanks Merix , well appreciated I will take a look at it myself, looking forward to what you find and how you solve this problem
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 16th Sep 2004 13:45
Just out of curiosity.. based on your original post you want it to rotate around. I cant really do any testing because i dont have your models and such.. however, i believe the correct command i was referring to earlier was zrotate object. Give it a try, put it in where your turning and use a wrap value.. I -think- that's what you want.

Example..



- Merix
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 16th Sep 2004 19:37
Well the model that I used is one you should have in Dark Basic its self in the static models section under a( unlss you are using the light version of DBC) , it code worked although unfortunately the mouse keeps moving the camera everywhere so it kind of cancel's it out but it does make the plane spin arpound on it's z xis so thank you Merix
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 16th Sep 2004 23:28
Heh, actually.. I have DBpro, so i'm glad that that command is there for DBC. But no problem, i'll check back on this page if you have anymore problems.

- Merix
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 17th Sep 2004 00:57 Edited at: 17th Sep 2004 11:48
Well as I said, the mousesteer aircraft moves all over the place so you have to be careful when you turn if you wish to use the rudeers better so I think I need help stablising the camera but apart from that , everything works
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 17th Sep 2004 07:47
Great

- Merix
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 21st Sep 2004 20:09
Still Merix how to I stop the camera from moving everywhere as that seems to spoil the effect of the rudders? That is about the only problem I am having with the code right now
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 22nd Sep 2004 06:33 Edited at: 22nd Sep 2004 06:36
I dont quite understand what you mean Vampyre.. could you explain the problem a little more.. Also, could you post your latest code, including the zrotation changes you made?

- Merix

WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 22nd Sep 2004 06:45


In any case.. i think this is kinda fun.. hehe.

- Merix

WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Sep 2004 07:40 Edited at: 22nd Sep 2004 07:47
Heh he tried that code it's nice but has the same problem the rudders don't work properly



if you try your modifications you will see that although mousesteer works wonderfully in this and the rudders work, the 1st person camera doesn't stay in the right cockpit position and cancels the rudders out to a certain extent untill the camera is in the right position again
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 22nd Sep 2004 08:08
I must be an idiot or something.. *needs a diagram* lol... By rudders, what do you mean exactly..

And when you say in first person, it's not in the right position.. what position do you want it to be in.. so the plane is completely out of the picture?

- Merix

WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Sep 2004 08:37
try the program out you will se what I mean the AIRPL043 model should beyour media models in Dark Basic Classic.

I need the 1st person camera to stay in the cockpit, just that you can look outand look left right up and down

Login to post a reply

Server time is: 2025-05-25 19:41:09
Your offset time is: 2025-05-25 19:41:09