Profile image

Elliptical grip model

110k hpgbproductions  1.2 years ago
2,164 downloads
Version 1.2 Tool

1.2

This mod modifies the default grip model used by the resizable wheel, hereby referred to as the "rectangular" grip model, with an "elliptical" grip model based on simcade games to better resemble real tires.

The unique handling styles of each drivetrain type come from the "circle of forces" - as longitudinal slip approaches the limit, lateral grip is reduced. Differences in traction between the front and rear wheels will produce different behaviors on different cars. However, the vanilla rectangular grip model does not have have this relationship between lateral and longitudinal grip, and therefore, most special features of each drivetrain type are lost.

The mod aims to restore those effects by setting grip multipliers in the direction perpendicular to grip demand. The slip extremum and asymptote values are used to create one ellipse each for slip extremum and asymptote. If the slip remains within the extremum ellipse, the wheel is considered to be under normal loads and there is no grip reduction along either axis. However, as the wheel exceeds the extremum ellipse and approaches the asymptote ellipse, it is considered to be overloaded, and grip is reduced in the direction perpendicular to slip.

In addition, tire smoke and skid marks are added based on how much the tire is overloaded.

The following Desmos graphs are used for prototyping. Some equations are provided but may differ from those used in the mod.
[1]
[2]

OTHER

The following mods are used in thumbnails:

NOTICE

  • Tested in 1.12.203.0.
  • Satisfactory results can only be obtained if a car is reasonably realistic and tuned for this mod.
  • The mod has no effect if none of the wheels has a slip that exceeds the extremum zone, i.e., the handling must be limited by grip.
  • The mod has no effect on landing gear parts that are not using resizable wheels.
  • The script checks for new resizable wheels every 10 seconds. It will take a moment for newly spawned AI aircraft to be affected.
  • Particles use the existing particle system on wheels, which in the vanilla game, only activated during a hard landing.
  • Skid marks may not support irregular combinations of rotation and scale of resizable wheels.
  • Settings data is saved under NACHSAVE\EGS.DAT. The file is created after restarting or quitting a level for the first time. Settings can be reset to default by deleting this file.
  • Does not use real-life physics data.

CONSOLE COMMANDS

EllipseGrip_ToggleDebugMode
Displays grip multipliers and wheel slip for all resizable wheels in the scene.

EllipseGrip_ToggleParticles
Turn on or off the emission of particles. Previously emitted particles are not removed.

EllipseGrip_ToggleSkidmarks
Turn on or off skid mark generation. Previously generated marks are not removed.

EllipseGrip_SetParticleAlphaExponent
The wheel overloading factor is raised to this exponent to get the opacity of particles. Increasing this will reduce smoke density at low overloading factors. Default: 3

EllipseGrip_SetParticleColor (color c)
Set a tire smoke color. Default: 1,1,1,1

EllipseGrip_SetStrength (float strength)
Set the maximum loss of traction perpendicular to slip. Default: 0.25

EXAMPLE CARS

Notice: Example cars are tuned for the mod. They will drive differently (maybe badly) without the mod.

MRC FLEX-V EGS
RWD car with rubber more suitable for erasers than sports cars. In MT mode, gear 4 and above will largely prevent any wheelspin.
You can also try the extremely simple traction control by activating it in the variable setters menu. (It just cuts power when wheelspin exceeds the extremum value)
Like the original car, you can use AG3 for linear steering mode. With a steering wheel and a lot of skill, it should be possible to recover from spins. It is largely impossible to recover from spins in steering assist mode as the steering angles are too small.

MRC FLEX-V EGS-2
Added a simple limited-slip differential that outputs a correction torque proportional to the angular velocity difference of the rear wheels. It prevents the free-spin of a single rear wheel, which can happen due to bumps or cornering.
In addition, a counter-steering assist factor has been added to the steering assist mode, but its performance is poor.

MRC FLEX-V EGS-2a (Assist Prototype)
Added TCS on Activate4. If there is excessive longitudinal slip in the direction of motion, the engine input will oppose it. Sensitivity is proportional to gear ratio.
Added ABS on Activate5. If there is excessive longitudinal slip against the direction of motion, the engine input will oppose it. (This does not mean that the brake torque can be set high! You should still use a brake torque close to or less than the amount required to lock the wheels.)
Changed grip curve so it falls off more gently after the extremum point.
There is a bug that affects edge cases of throttle and brake combinations. This will cause the car to stop before continuing.

NIKE ONE 2022 EGS
Second re-tune of the funny car. It is possible to change the drivetrain without touching any FT, but two tires cannot handle the power.

VERSION HISTORY

1.2 (2312272020)

  • The settings that can be changed using commands are now saved when exiting or restarting levels.

1.1 (2310142330)

  • Added skid mark visual effect using UnitySkidmarks by Nition
  • Added tire smoke exponent to reduce smoke density at low tire overload levels
  • Fixed incorrect behavior of SetParticleColor command

1.0 (2309232130)

  • Initial release

KNOWN ISSUES

  • When a tire leaves the ground, smoke continues to be emitted. Unfortunately, the IsGrounded property of resizable wheels does not work as expected, so I cannot use it for this purpose.

  • Log in to leave a comment
  • Profile image
    28.6k YarisSedan

    Daaaaamn

    7 months ago
  • Profile image

    @MVC i am also hpgbproductions on discord, we can chat there

    9 months ago
  • Profile image
    54.6k MVC

    Hi, I'd like to get in touch with you, maybe in discord or some other way. I want to make a mod for wheels and a motor, but I don't know how to interact with existing parts, maybe you could tell me

    9 months ago
  • Profile image

    @001 :xpp: :ElNoSabe:
    But seriously, programming has this stuff called dependencies, where you rely on others' code. Some company made some changes and along the way you lose mobile mods

    +2 10 months ago
  • Profile image
    58.5k Calliope

    @hpgbproductions, why there's no mobile version?

    10 months ago
  • Profile image
    137k BaconEggs

    @hpgbproductions oh ok thanks I dint read too far into the changelog

    one year ago
  • Profile image

    @BaconEggs ok, settings that can be changed using commands are now saved between runs. It doesn't use the mod settings mod

    one year ago
  • Profile image
    137k BaconEggs

    u should make a mod settings menu that allows disabling of particles & skid marks that stuff does actually nothing and it is so annoying to disable every time i load in

    +1 one year ago
  • Profile image

    @rexzion me too

    one year ago
  • Profile image
    44.4k rexzion

    i love it when tire marks in the air

    one year ago
  • Profile image

    Love the MR2 AW11 in the thumbnail, a grippy car for this mod. Have an 88 SC myself that I rally.

    +3 1.2 years ago
  • Profile image
    69.4k Juanfly154

    Dude this is awesome. Please do more mods !

    1.2 years ago
  • Profile image
    230 kman1

    @ShinyGemsBro thanks, my tiny brain cant comprehend any thing, my computing rate is 2kb per second!

    1.2 years ago
  • Profile image

    @Freerider2142 oh so it means we can drift now

    1.2 years ago
  • Profile image
    15.6k Johnnyynf

    This makes the grip so so much better, I'm addicted to driving in SP again.
    I know ur not a magician, but could you maybe take a look at this problem too?
    I'd believe it's due to the fact that when the grip doesn't scale properlly with the positive force (aspecially when the wheel get light). That setting probally do exsist because down force works with cars.
    If not multiply the grip by the how much build-in suspension is compressed would probablly work too.

    And also if you can, some how give wheels brake FT input option.

    Ur doing great work my man

    +1 1.2 years ago
  • Profile image

    @ShinyGemsBro drift, sure, but to drift properly you probably want to add funky trees

    1.2 years ago
  • Profile image

    @StockPlanesRemastered you don't need to know all that to use this mod. Like with the vanilla tire model, just set traction until it feels right

    1.2 years ago
  • Profile image
    46.0k ShinyGemsBro

    For the kids at home, this mod simply allows you to drift properly.

    1.2 years ago
  • Profile image
    70.8k 929

    Congratulations on 100K!!!
    @hpgbproductions

    1.2 years ago
  • Profile image

    In Other words if you run this mod you need some sort of actual spring based suspension (either leave, double wishbone, or double coil over, and you need to know how camber, tow, and caster work.

    +2 1.2 years ago
  • Profile image

    Am confused

    1.2 years ago
  • Profile image

    This is the Game update I've been wishing for 2-3 years now.
    TY for this!!

    1.2 years ago
  • Profile image

    this should be in the actual game tbh.

    +5 1.2 years ago
  • Profile image

    ok, just tried it out, awesome, I was already doing a lot of laps on the Nordschleife with a really great car with awesome physics, but this really does a lot.

    1.2 years ago
  • Profile image

    @Nerfaddict somewhat yeah. If the asymptote is too close to the extremum, the wheel will lose grip too quickly. Usually street tires lose grip slowly compared to racing tires.

    1.2 years ago
  • Log in to see more comments