Journal Entry 3


Date: 17.5.2023

Activity:

Notes:

  • My circuit is build from many track tiles, each has two path curves (left and right lane). In future versions I want to be able to have switch tiles, where the player can switch lanes or enter a pit lane for example. So the car needs to continue to one of the next path curves when it reaches the end of the current one. This can be achieved quite easily, I find this answer a great place where to start.
  • The car has two main parts: the car itself (with the body and four wheels) and the pin, that on real slot car sets holds the car on the track. The pin and the car are connected via joint with set break force, so the car will leave the track when it goes too fast into a corner. Both parts are dynamic rigid bodies. When the player holds the throttle, a relative force will be applied to the car. And the pin is repositioned to the path curve in every update. Both parts affect each other because of the forces are applied to both of them, so they need to have the same mass. I am quite happy with the final result.

Get Slot Car Racing - Project C

Leave a comment

Log in with itch.io to leave a comment.