A unity 2022 LTS sample project to help you get started building a mobile arcade kart game.
- An arcade kart controller based on a sphere-shaped non-kinematic rigid body (so no wheel colliders or other type of colliders are used).
- A tile-based track system. A track is made of several tiles assembled together. All tiles have the same size (1f x 1f) and can be rotated by increments of 90 degrees.
- A simple camera follow controller.
- A blender file where you can see on how to create more tiles following a non destructive workflow approach by using geometry nodes and other type of modifiers.
- Tracks do not need to belong to unity scenes. A json file is used to specify the layout of a track. This open the possibility for the player to create his own tracks.
- A unity editor window (BuildMapWindow.cs) so you can generate the track json file according to the content of the currently active scene.
- Collider.ClosestPoint(Vector3 point) support for non-convex mesh collider (which is not supported by Unity).
- The ground where the kart is moving on can be made of any type of colliders, including non convex mesh colliders.
- Great physics performance in the editor or on mobile devices even with extensive usage of non-convex mesh colliders.
- Physics global settings (Project Settings > Physics, Project Settings > Time > Fixed TimeStep) heavily tunned for a smooth kart driving experience.
- As with most mobile kart games, the player does not control kart acceleration or breaking. For steering, press key "A" or "D" or press one of the two buttons on screen.
Open scene SampleScene and hit button Play.
In Build Settings, make sure that platform is set to android and then hit button Build.