Jump to content
  • Advertisement
Azain Khan

Turbocharger Implementation?

Recommended Posts

Hi everyone.

I'm trying to create a turbocharger. However I can't find a mathematical model of the turbocharger on the internet. So, it would be very helpful if some fellow GameDev could explain Turbocharger and how to implement it.:)

Thank You.

Share this post


Link to post
Share on other sites
Advertisement

A very interesting thread. But what's the purpose of the turbocharger? How exactly, and to what extent, does extra torque make the game "more fun"?  

Share this post


Link to post
Share on other sites

I measure the current power output of the engine and use this to calculate a "target pressure" value. A "current pressure" value then moves towards that target pressure over time (creating the delay), but is capped at a maximum. When pressure leaves the system, I store that in a "blowoff" variable that's only sent to the audio system :)

The torque output from the engine to the transmission is then simply boosted by a percentage relative to the current pressure value.

4 hours ago, LorenzoGatti said:

But what's the purpose of the turbocharger? How exactly, and to what extent, does extra torque make the game "more fun"?  

If you're going for a sim, it helps reproduce the "feeling" of some real cars. If you're just going for fun, the slight delay in max engine output after giving the "go fast now" user input can be a fun thing to play with.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!