Added: 6 months ago
From: mtimko83
Views: 1,399
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (13)

Sign In or Sign Up now to post a comment!
  • this is awesome, i love the bus

  • really cool engine! love the physics keep it up!

  • How did you do terrain collisions? I mean that car drives uphill

  • @Tasaq313

    Collisions are done by penalty force method. Engine calculates how deep is wheel (or other car part) under the terrain and then applies appropriate force to push it up.

  • @mtimko83 hmmm, but how do you check that part is under terain? I am taking my terain from 3ds max, so i don't use heightmap... also i like your idea to cover a car with multiple colispheres :)

  • @Tasaq313 I think the simplest way is to implement triangle-point collision detection algorithm and test every point of vehicle geometry with every triangle of terrain mesh. This approach is of course very slow so you'll need some optimizations like bspheres or other simplified collision geometry to represent car model. Also subdividing terrain into smaller areas to limit number of triangles per one collision test is a good idea (using regular terrain grid, I can limit it to one).

  • @mtimko83 Thanks, I alread am trying to do that, but I have problems with geting triangles from my loader, I think it will take my some time to figure that out:)

  • Do you use SAT for collision or just spheres?

  • @staticVoid2

    Just spheres. But I'll definitely use convex components (and SAT) next time, it's much more handy for cars.

  • lol you reused the same project..

  • great game

    how many days does it took make this game

  • @sharan01s

    Thanks!

    Well, it took me more than 2 years to finish it, but I used it as a final coursework on many occasions at university (including bachelor thesis) so I think it was worth it.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more