Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Another question about car simulation #23998
03/04/04 00:52
03/04/04 00:52
Joined: Feb 2003
Posts: 20
mltdesp Offline OP
Newbie
mltdesp  Offline OP
Newbie

Joined: Feb 2003
Posts: 20
Hi

I've got another question about car simulation using a physics engine (GameStudio's or Newton, it doesn't matter).

How it could be a good car simulation using manual gears? Can you help me with that?

Re: Another question about car simulation [Re: mltdesp] #23999
03/05/04 10:30
03/05/04 10:30
Joined: Sep 2000
Posts: 300
Ohio, USA
V
vrkaya Offline
Senior Member
vrkaya  Offline
Senior Member
V

Joined: Sep 2000
Posts: 300
Ohio, USA
I added some code to the arcadeCar demo for the Newton Game Physics. Ventilator made the demo.

You basically have to adjust torque and max_speed - at least that's what I did to facilitate "tap brakes", "regular brakes" and more realistic acceleraton features. Take a look at it from the link below - it may answer some of your question. Funny, but I was just thinking today of doing something similar and making an Indy car model. If you code it, I would try something like using a keypress to simulate gears, and for each gear establish a minimum/maximum torque and a speed range.

The code I changed is pasted in the thread:

car physics thread

Regards, Ron


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1