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 / Making a car turning

Author
Message
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 31st Aug 2005 23:05 Edited at: 31st Aug 2005 23:05
How would I make a car turn if up key and leftkey is pressed (and have the camera follow the turn). Could you make an example of it with a brick or something? Thank You in advanced!!

------------------------
Visit my website of Games!
http://dabip.stonerocket.net
Call me coder
20
Years of Service
User Offline
Joined: 5th Mar 2005
Location:
Posted: 1st Sep 2005 01:20
here. Just so you know. this 1 aint mine



TO ALL THOSE PROGRAMING PEOPLE OUT THERE!
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 1st Sep 2005 17:13
Teehee, that's my code

BTW: to have some REAL car physics, use this. I haven't been able to sort it out myself.
It's from the masked coder or something. But I couldn't find the link to the file, so I posted it myself.

Again, you'll need some good math-brain to fully understand the code.

Immunity and Annihalation makes Immunihalation...

Attachments

Login to view attachments
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Sep 2005 17:28
Not sure if this is any use to you, but its source code to a racing game. (c++ probably)
http://www.positech.co.uk/rocky/sourcecode.shtml

I believe this is the website the Masked Coder used to build his car physics.
http://home.planet.nl/~monstrous/tutcar.html

I've partially written my own system from that page as well, and let me tell ya, it's not easy.

Your signature has been erased by a mod because it's larger than 600x120...
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 1st Sep 2005 17:31 Edited at: 15th Jan 2006 07:06
Hmm, thanks. The first one was really good. I just need to change the camera to follow the car (I can do that). I'll try the other two when I get back from school (todays the first day).

Login to post a reply

Server time is: 2025-05-22 09:15:37
Your offset time is: 2025-05-22 09:15:37