Racing car 3D video tutorial

MagicLordMagicLord Posts: 578Unconfirmed
edited March 31 in Tutorials

Hi there

Bastiaan Olij made a nice racing car tutorial covering important aspects.

https://youtube.com/watch?v=B5vE-nNszxA

You can find the project demo on github
https://github.com/BastiaanOlij/vehicle-demo

The car is shaking and sliding too much on floor, i don't know how to fix it.

Comments

  • NeoBerlinNeoBerlin Posts: 106Member

    Hi @MagicLord ,
    thank you...looks nice.
    And i found out the problem:
    the issue is only when the car has a collision shape...

    so remove it from the car and it doesnt shaking...but adding a new collision, it is again shaking...

    i searched for it and found out it must be a very old issue...

    I hope this helps you a bit
    Neo

  • NeoBerlinNeoBerlin Posts: 106Member

    btw...the Truck Town Demo has the same issue, i looked on it and found the same problem.

  • NeoBerlinNeoBerlin Posts: 106Member

    hmm...but the car body needs a collision shape wor working fine...

  • MagicLordMagicLord Posts: 578Unconfirmed

    @NeoBerlin said:
    hmm...but the car body needs a collision shape wor working fine...

    The author made some comments on the video about the stability and sliding issues, it could be parameters you need to tweak like distance between wheels or the springs setup.

  • NeoBerlinNeoBerlin Posts: 106Member

    not really...i tried a lot with all this params and alltime it fall back to shaking sometimes faster, sometimes slower... but everytime came the time it shaked...

    ...it was hard for finding it out, but i found a solution with my own low poly car (cube and cylinder) and in this way i played allso with the collision box...now, try this:
    the collision box of the car must be bigger like the car including the wheels (with steered whells), and on the same hight, like the wheels...hmm, hard to explain:



    only change the collision box in this way you see on my pics and try it out...

    for real collision with the world i actually try to define a second mesh and collission box, parented on car for better colliding.

    wtf, i hope u understand my bad english xD
    Neo

  • MagicLordMagicLord Posts: 578Unconfirmed

    I tried your setup, but the car is always shaking and sliding.
    The collision body is supposed to be the car collision with other cars and racing track, how you setup is too big and height is too low to floor.

  • NeoBerlinNeoBerlin Posts: 106Member

    hmm...for me it works fine...no shaking.
    here the proj:
    https://dropbox.com/s/cfxk5cgsn7c2yje/vehicle-demo-master.zip?dl=0
    i only resized the collision box of the car.
    for colliding with world instances - thats right...the box is too big...this box mayby only for floor colliding ?
    and a second one for instances around the world?

    Greetings
    Neo

  • NeoBerlinNeoBerlin Posts: 106Member

    ok, this is mysterios:
    i complete rebuild the sample with my own low poly car and street tiles and i cant reproduce the issue...
    i played a very lot with the values of the whells, but it will not shake (only in brake by zero)
    can you please take a look on it - do you have the same? no shakes?
    https://dropbox.com/s/wpuqq1xs96j9dst/lp_carTest.zip?dl=0

    thank you
    Neo

  • MagicLordMagicLord Posts: 578Unconfirmed

    @NeoBerlin said:
    ok, this is mysterios:
    i complete rebuild the sample with my own low poly car and street tiles and i cant reproduce the issue...
    i played a very lot with the values of the whells, but it will not shake (only in brake by zero)
    can you please take a look on it - do you have the same? no shakes?
    https://dropbox.com/s/wpuqq1xs96j9dst/lp_carTest.zip?dl=0

    thank you
    Neo

    I tried your demo and the car is not shaking or sliding.
    It's a good starter to make car physic games.

  • NeoBerlinNeoBerlin Posts: 106Member

    good to know, thank you.
    for testing different setups, at first i need to know an easy way to get a collision shape for my terrains...not only a plane, a mesh form collision. ..
    ...but thats an other post ;)
    Neo

  • ZireaelZireael Posts: 74Member

    Collision shape for terrains should be easier with upcoming heightmap collision shape...

Sign In or Register to comment.