Soldato
- Joined
- 18 Oct 2002
- Posts
- 16,079
- Location
- The land of milk & beans
Hey all,
I'm trying to make a racing driver management sim and I've got the basics working in a C# console app. You give the code a track, driver and a car and it'll spit out X number of laptimes.
Now, I'm trying to model tyre degredation in to the laptimes and I know how I want to do it, unfortunately my GCSE maths is letting me down. What I need is to get values in the range 0-10 for the grip level based on the current lap and the tyres being used. Here's a basic graph I knocked up in PS to demonstrate the model:
*edit*
Just realised I forgot the key - Soft, Medium, Hard
Now from my research I think I need to use the trigonometry functions of Math, however I don't understand what/how to make them work for this scenario?
Virtual cookies/beers are on offer for anyone can give me a nudge, link, or example code showing how I can do this
Thanks guys.
I'm trying to make a racing driver management sim and I've got the basics working in a C# console app. You give the code a track, driver and a car and it'll spit out X number of laptimes.
Now, I'm trying to model tyre degredation in to the laptimes and I know how I want to do it, unfortunately my GCSE maths is letting me down. What I need is to get values in the range 0-10 for the grip level based on the current lap and the tyres being used. Here's a basic graph I knocked up in PS to demonstrate the model:

*edit*
Just realised I forgot the key - Soft, Medium, Hard
Now from my research I think I need to use the trigonometry functions of Math, however I don't understand what/how to make them work for this scenario?
Virtual cookies/beers are on offer for anyone can give me a nudge, link, or example code showing how I can do this

Thanks guys.
Last edited: