Jump to content

About Scramjets and Curves


Zaddy23

Recommended Posts

Hello! I've decided to tentatively dip my feet into the vast ocean that is this game's modding community, and for my first mod I decided to make a Scramjet style engine. (Basically a high thrust jet engine that only works at speeds above mach 3 and altitudes above 10km) I took the stock turbojet, and changed the .cfg file atmosphere and velocity curves so it now looks like this:

		velCurve
{
key = 0 0 0 0
key = 0.2 0 0 0
key = 0.72 0 0 0
key = 1.36 0 0 0
key = 2.15 0.1 0 0
key = 3 3 0 0
key = 4.5 5 0 0
key = 5.5 0 0 0
}
atmCurve
{
key = 0 0 0 0
key = 0.045 0.5 0 0
key = 0.16 0.5 0 0
key = 0.5 0.001 0 0
key = 1 0 0 0

What I'd like to know is how should I change the final two values on each column, I made them zero just so I could see the numbers better, but I don't know what they actually do. Can anyone explain them to me? The values I have put seem to work, but there are hard cut-offs instead of smooth transitions. As in, the engine immediately leaps up from not working to suddenly working when mach 3 and 10km altitude is reached, and vice versa for the speed.

Any ideas?

Link to comment
Share on other sites

The final two values are the in- and out-tangets of the curve, at 0 0 the tangent goes in and out flat horizontally for each key so not exactly a smooth transition.

I recommend to check out r4m0n's float curve editor for unity, it shows you a graph for your curve, lets you tweak and copy paste it. (remove empty spaces before keys when you use it)

Also, here's a handy guide on configuring air breathing engines including scramjets

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...