Journal Entry 3
Slot Car Racing - Project C » Devlog
Date: 17.5.2023
Activity:
- Path curves added to track tiles prefabs, Bézier Path Creator by Sebastian Lague used (https://assetstore.unity.com/packages/tools/utilities/b-zier-path-creator-136082)
- Physics implemented
- Car reset
- Camera follows the car
- Drift effects added
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
Slot Car Racing - Project C
mff-gdintro-2023-c
More posts
- Journal Entry 4May 22, 2023
- Journal Entry 2May 14, 2023
- Journal Entry 1Apr 27, 2023
Leave a comment
Log in with itch.io to leave a comment.