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 / Having flight simulator problems

Author
Message
8 Ball
22
Years of Service
User Offline
Joined: 10th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 13:39
Hi All!

I got full versions of dark basic and dark matter and I'm trying to create a flight simulator. But I have a problem! I’ve got as far as loading the “plane.x” file, creating a matrix, texturing it all, setting up the controls for the plane and get the camera to follow it. But I can’t get the camera to follow the rear of the plane, seeing the pilots view. I’ve tried using bits of code from the free fight example program, but with bark matter *.x files this sets the camera up to view the object from the front using the object orientation. Not from behind. What am I doing wrong? Why is it when you use “set camera to object orientation” you always face the front of the object? Please Help!
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 18th Jan 2003 22:24
The dark matter models tend to be facing backwards, you could try yrotate object 1,180:fix object pivot 1 to get them facing the right way. Alternately, if the camera is already following the path of the plane behind it, you could point the camera at the plane using the point camera command.
8 Ball
22
Years of Service
User Offline
Joined: 10th Jan 2003
Location: United Kingdom
Posted: 19th Jan 2003 01:02
Thank Darthster

It works! I know there had to be an easy solution.

Login to post a reply

Server time is: 2025-05-11 18:25:55
Your offset time is: 2025-05-11 18:25:55