#### Archived

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

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

## 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 on other sites
Come on guys, i know someone has some information for me...

##### Share on other sites
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)
{
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 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 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 on other sites
Thats great, thats what i need. May i ask for the source code, so i can learn how to port it to Genesis3D?

##### 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 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 on other sites
take a closer look to this.

##### Share on other sites

http://home01.wxs.nl/~monstrous/

glHorizon_Project

www.web-discovery.net

1. 1
2. 2
3. 3
frob
12
4. 4
5. 5

• 13
• 14
• 65
• 14
• 15
• ### Forum Statistics

• Total Topics
632130
• Total Posts
3004286

×