Search Unity

Games Vehicle Physics Test - WIP

Discussion in 'Works In Progress - Archive' started by tasadar, Nov 27, 2017.

  1. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    Hi all, i have been working on vehicle physics for a couple of weeks now.

    I managed to implement the simplified pacejka tire model and some driving assists to make it a bit more playable. My aim is to have a fun to drive, arcade style vehicle implementation.

    Currently i have a playable demo with a fwd car. Because of some technical problems i am having difficulty making rwd cars playable and also some of the driving assists can result weird behavior in some cases. My plan is to make further research on the pacejka model(especially about combining forces) and other models like the brush model.

    I would like hear about your opinion about the current driving feel and any feedback is welcome.

     
    Last edited: Dec 1, 2018
  2. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    Kurt-Dekker likes this.
  3. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    1,490
    Can you show us a video?
     
    carking1996 likes this.
  4. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    sure, uploaded a short one, in the first post.
     
  5. Chris3Design

    Chris3Design

    Joined:
    Aug 11, 2011
    Posts:
    115
    The whole thing feels pretty solid so far!
     
  6. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    thanks man, your 3d work also looks nice.
     
    Chris3Design likes this.
  7. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    1,490
    Looks good! I would be interest to see off road options :)
    Is this for a game you're making, or asset?
     
  8. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    thank you, this is neither a game nor an asset for now it is only hobby.
    there are still a couple of things to do on my list after then if get satisfied of the results i'll consider the asset option, if i find an artist partner i may try to turn this into a game, time will tell.
     
  9. Chris3Design

    Chris3Design

    Joined:
    Aug 11, 2011
    Posts:
    115
    Anything new? Maybe stuff like an option for backfire, or a red light that goes on when you max on the revs. Small stuff
     
  10. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    those are eye candy stuff, i am working on only physics for now.

    whats improved since video:
    -esp code rewritten, it was based on fake forces now it is applied only by brakes which is less efficient but kinda realistic.
    -vehicle jittered at near zero speeds(common problem of pacejka), to avoid that lateral force calculation is changed at low speeds.
    -added dynamic torque distribition between axles which helpes the rwd vehicles to recover oversteering more easily.
     
    Chris3Design likes this.
  11. Chris3Design

    Chris3Design

    Joined:
    Aug 11, 2011
    Posts:
    115
    Sounds good! Sorry for the eyecandy ideas haha, artist problems eh
     
  12. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    a new video and demo is uploaded(see the first post), here are the things that i have been working on:

    -demo can be played with keyboard and/or xbox joypad. steering wheel support is planned.
    -different differential options like open/viscous/lsd/locked. differentials are the most annoying topic for me, still need to check em out later.
    -different tire models are added like pacejka94, pacejka96 & harty. harty is too simple but cheap, pacejkas require good parameter sets.
    -multi ray wheels(aka 3d wheel) option is added.
    -multiple axle support, previously only front&rear.
    -ackerman steering is adjustable now, inverse possible.
    -camber angle for wheels is added, it only works with pacejka 94&96.

    ...and many minor fixes, still working on it.
     
  13. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    i added a short stress test video showing 50 cars at 50hz and 500hz.
    the video recording adds some cpu time but still playable at 500hz.
     
  14. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    i put together some assets and started testing different setups, see the latest video in the first post.

    i am thinking of making an assetstore package out of this and started working on this objective. it will be focused on vehicle physics only, the extra gameplay elements will be available too except the third parties.
     
  15. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    still working on final touches, different setups, documentation etc.
    i am planning to release it in january and the name will be F-Gear.

    here is a drift setup sample :

     
  16. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290
    a bit more slippy but better drifts:

     
    Bartolomeus755 likes this.
  17. crukas

    crukas

    Joined:
    Dec 27, 2018
    Posts:
    9
    You should share your implementation of the tire on Github!
     
  18. tasadar

    tasadar

    Joined:
    Nov 23, 2010
    Posts:
    290