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 / using mouse to look around cockpit?

Author
Message
MoonSon
22
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 24th Sep 2003 19:40
I have a ship that rolls and pitches in a 3d world like a flight sim. Thing is i want to also use the mouse to look around the cockpit, but the orientation goes all wrong when i move the ship and the mouse controls reverse.

Anyone know what im doing wrong?


Heres some of the code....
1001 is the ship object

Thanks for any help
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 24th Sep 2003 19:59
I beleive your problem may be because you are adding the camrot_# variables onto the camera angle, it should just be:



c:/dos
c:/dos run
run dos run
MoonSon
22
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 24th Sep 2003 20:05
yeah but i also need the camera to rotate with the ship!

Login to post a reply

Server time is: 2025-05-20 14:39:15
Your offset time is: 2025-05-20 14:39:15