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 / Car rotation problems

Author
Message
DDD Productions
21
Years of Service
User Offline
Joined: 14th Mar 2004
Location: On Earth
Posted: 16th Jun 2004 23:15
PLEASE LOOK AT MY SOURCE CODE CAREFULLY

I have a car along with a matrix. I have created several rams/slopes on the matrix. I have managed to make my car go up the ramp, just not rotate properly. I have tried the folowing code:



And something similar for rotating it on the x axis. However, when I go up the ramp, my car rotates at a crazy angle. I have also tried:



But that doesn't work. Why? And how can I solve this problem? I have tried to incorperate the source code from the tank demo but my car still rotates at a crazy angle.

While I'm showing you my source code, I'm hoping you can also help me with anouther problem. I'm having trouble trying to debug by code. Whenever I try use the text, print or center text commands, they do not work.

D.D.D Productions
Specializing in game creation
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 20th Jun 2004 13:44
First of all for the text/print commands make sure they're all at the end of the main loop otherwise the 3D will overwrite them. Im not sure about the rotating thing but it think theres something about it in the binary moon tutorial.

I should have changed my signature when asked
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 20th Jun 2004 17:21
Do you mean its not facing uphill when going uphill and vice versa ?

Login to post a reply

Server time is: 2025-05-26 02:47:28
Your offset time is: 2025-05-26 02:47:28