Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalized Torque Curve for Gas Motor #7

Open
JustInvoke opened this issue Jan 7, 2017 · 0 comments
Open

Normalized Torque Curve for Gas Motor #7

JustInvoke opened this issue Jan 7, 2017 · 0 comments

Comments

@JustInvoke
Copy link
Owner

Currently, the torque curve on the GasMotor script represents both the RPM range and the torque of the engine across the range. This means that the top speed of a vehicle is directly impacted by the width of the curve. The problem with this is that it's difficult to change the top speed of a vehicle while maintaining the same torque levels across the RPM range.

I have contemplated adding an option for the torque curve to be normalized with regard to its RPM range. With this, a separate variable could be used to set the maximum RPM of the engine while the torque curve remains unchanged. The torque curve will be sampled at a normalized point based on the current output RPM of the engine relative to its maximum RPM.

Basically, the x-values of the torque curve will range from 0 to 1, and the sampled value in this range will be the fraction of the engine's current RPM out of the maximum RPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant