View unanswered posts | View active topics It is currently Thu Nov 15, 2018 2:49 pm



Reply to topic  [ 6 posts ] • Topic rating: Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average. 
 GeneRally Physics Calculator 
Author Message
User avatar


Joined: Fri Jan 01, 2010 6:10 am
Posts: 1287
Location: Indonesia
Post GeneRally Physics Calculator
Hi guys.

I've recently been into web development recently, so I made this simple tool for you just to brush up my JavaScript skills.

Click here to try it out.

What is this?

This is a simple web tool to generate a realistic, scaled-down attributes for your GeneRally car files. All values are based on Haruna's realistic car physics formulas with some more refinements on their end as well.

This is entirely based on HTML5, CSS and JavaScript, so it should be accessible from all modern browsers.

How do I use this?

First, enter the real-life attributes of your car. Then click the "Calculate physics" button and it will calculate the scaled GR physics, rounded down to two decimal places.

A reference table for the Downforce values is available here.

If you run into an issue, please file an issue report on GitHub or just use this thread.

Open source

Yes, this app is completely open-source (licensed under MIT). Feel free to grab the source code for your own projects, but as per the MIT License requirements, please leave the copyright notice intact.

Thanks

  • Haruna, for the Realistic Car Physics.
  • Twitter Inc., for the Bootstrap framework.
  • Areen, for some useful help with the JavaScript code.

Hope you guys like it. :)
-Resi.

UPDATE 1: This updates adds some layout & formula improvements.
  • Updated downforce reference table.
  • Mass is now 60% of the original car's weight.
  • New tyre grip equation.
  • Now has the formula to calculate exact balance.

UPDATE 2: Even more improvements.
  • Updated balance and grip formula.
  • Reference table now inside a modal element instead of in another page.
  • Layout is now responsive, mobile-friendly.
  • Code clean-ups.


Attachments:
Screenshot.png
Screenshot.png [ 112.52 KiB | Viewed 2396 times ]

_________________
@resir014 | GWR Stats | My GeneRally Stuffs | Twitter
"When I have finished explaining you will understand less."


Last edited by resir014 on Mon Apr 21, 2014 11:15 am, edited 3 times in total.

Sun Apr 20, 2014 5:48 pm
Profile E-mail YIM WWW


Joined: Sat Jan 02, 2010 2:40 am
Posts: 1311
Location: Parallel World
Post Re: GeneRally Physics Calculator
Yeah, it's finally here! :D

_________________
Hi! I'm Rendy, and welcome to GeneRally!

GeneRally Catalogue - [R]GARAGE - Twitter - Blog


Sun Apr 20, 2014 10:51 pm
Profile E-mail YIM WWW
User avatar


Joined: Fri Jan 01, 2010 6:10 am
Posts: 1287
Location: Indonesia
Post Re: GeneRally Physics Calculator
Alright, throughout the past few days I have updated this calculator with some nice new features, also from Haruna's inputs I've also introduced some changes to the formulas.

Some of the update logs include:

  • All-new formula to calculate exact balance.
  • Updated downforce reference table.
  • Tarmac grip formula updated.
  • The entire site is now mobile-friendly, you can now access it from your phone (if you're into that sort of thing).

_________________
@resir014 | GWR Stats | My GeneRally Stuffs | Twitter
"When I have finished explaining you will understand less."


Tue Apr 22, 2014 1:47 pm
Profile E-mail YIM WWW
User avatar


Joined: Wed Apr 13, 2011 10:36 am
Posts: 197
Location: Miskolc, Hungary
Post Re: GeneRally Physics Calculator
Can you help me?
I see a value called AI Value. What is that value?

_________________
My Tracks & Cars
Tracks: Kakucsring, Rabocsiring ([rwl] Rallycross tracks)
Cars: FIA Group R4, FIA Group R5(Car of the Month), FIA Group RRC, Seat Leon Eurocup 2014, Suzuki Swift Cup Europe 2014, Seat Leon Szuperkupa 2008, Copa Tiida 2011

Pronounce my name like Smiley.


Tue May 20, 2014 7:07 pm
Profile E-mail WWW
User avatar


Joined: Thu Mar 08, 2012 11:13 pm
Posts: 1955
Location: The good ol' US of A
Post Re: GeneRally Physics Calculator
AI value is how far ahead the AI looks on the track, if memory serves correctly. I usually set it to 7 and that seems to work pretty well.

_________________
April 2012 rookie of the month, winner CoM Nov/Dec 2013 (NASCAR CWTS 2013), Jan/Feb 2014 (NASCAR Sprint Cup 2014) and Sep/Oct 2014 (TUDOR USC GT Lemans), Winner 2013 Competition Organizer Rabina Award
Volcano Motorsports
Check out my stuff
Owner and promoter of NAGRCA


Thu Jun 05, 2014 1:45 am
Profile
User avatar


Joined: Wed Apr 13, 2011 10:36 am
Posts: 197
Location: Miskolc, Hungary
Post Re: GeneRally Physics Calculator
puttz wrote:
AI value is how far ahead the AI looks on the track, if memory serves correctly. I usually set it to 7 and that seems to work pretty well.


Thank you! :)

_________________
My Tracks & Cars
Tracks: Kakucsring, Rabocsiring ([rwl] Rallycross tracks)
Cars: FIA Group R4, FIA Group R5(Car of the Month), FIA Group RRC, Seat Leon Eurocup 2014, Suzuki Swift Cup Europe 2014, Seat Leon Szuperkupa 2008, Copa Tiida 2011

Pronounce my name like Smiley.


Thu Jun 05, 2014 8:59 am
Profile E-mail WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] • Topic rating: Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average.Ratings: 0, 0.00 on the average. 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.