Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Jasun220

Radio Control car physics???

This topic is 6199 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, first of all, let me introduce myself. My name is Jason and im using the Genesis3D Rendering engine for my game (www.genesis3d.com), and the game is going to be a radio control car game. Im at the point of physics for the car, is there any FREE physics engines out there that can simulate RC cars? And i need some information for the camera code, i dont know if i can explain this or not, but you know in racing games how the camera seems to ''float'' and follow behind the car, i need help in getting the effect for a camera. Im not an expert in DirectX or OpenGL, but some code snips or something would be great! - Thanks in advance - Jason

Share this post


Link to post
Share on other sites
Advertisement
Code your own physics. Besides the fact that I don't know of any "physics engines," it's not too hard to code, anyway. Start simple:

move(float amount, carstruct * car)
{
car->x += sin(car->angle) * amount //In radians
car->y += cos(car->angle) * amount
}

turn(float amount, carstruct * car)
{
//Amount is in radians.
car->angle += amount;
}

The end. Read up on vectors - read the vectors and planes article here on gamedev.net. And if you need to get more complicated then that, read up on trig (not too hard) and use common sense (game physics really is mostly common sense, plus a little trig), and if you can't figure something out, then post here. I hope you're successful in coding your RC car game. Just don't make things too complicated.

Edited by - TerranFury on August 14, 2001 9:45:04 PM

Share this post


Link to post
Share on other sites
The engine im using is a prety simple engine to use. so im sure i could get it eventually For all those people making RPG games, i would suggest you lookinto Genesis3D (www.genesis3d.com) and if you have time, download GDemo, it show the power of Genesis3D.

Share this post


Link to post
Share on other sites
I knocked up an RC car demo thing in openGL for an assignment...its not great (less than a weeks work) and was my 1st 3D demo...the sliding i put in tho was very RC car like i thought...

http://www.rbut.demon.co.uk/RC.zip
(you need glut32.dll also cus i used a glut function for the FPS)

As far a physics engines go - there arnt any that I know of...


**
Ste

Share this post


Link to post
Share on other sites
I would totally give the code out as this is something I strongly believe in (free source for educational purpose). Alas I my HD died leaving me with nothing...I only have the exe as I uploaded it to ftp. I have the code (printed out) as a hard copy of the code was a requirement of the assignment.

If you require direction regarding a specific aspect I am sure I could explainthe theory i implimented...but pls dont ask for every aspect else I will be 92 before I finish the email!



**
Ste

Share this post


Link to post
Share on other sites
Ok, well, the people that are making Genesis3D Classis will have objects with physics in them, so im going to wait until they release their re-built engine. The main thing i was interested in is your camera code, thats my chalenge right now.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!