https://github.com/tlabaltoh/tlabvehiclephysics
An open source wheelcollider sample project
https://github.com/tlabaltoh/tlabvehiclephysics
physics-simulation unity unity3d vehicle wheelcollider
Last synced: about 2 months ago
JSON representation
An open source wheelcollider sample project
- Host: GitHub
- URL: https://github.com/tlabaltoh/tlabvehiclephysics
- Owner: TLabAltoh
- License: mit
- Created: 2023-05-14T16:52:44.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T16:25:40.000Z (about 2 years ago)
- Last Synced: 2024-04-04T17:57:24.652Z (about 2 years ago)
- Topics: physics-simulation, unity, unity3d, vehicle, wheelcollider
- Language: C#
- Homepage:
- Size: 405 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TLabVehiclePhysics
Open Source WheelCollider for Unity. This project implements a pacejka based tire logic.
[](https://www.buymeacoffee.com/tlabaltoh)
## Screenshot

Pacejka and LUT Tool
Physical parameters for vehicle
Pacejka
Downforce
Torque Curve
## Approach to tire physics implementation
This project uses [```Pacejka```](https://en.wikipedia.org/wiki/Hans_B._Pacejka) and ```LUT (Look up table)``` for the minimum physics parameter unit. And most of the physics parameters are culculated as interprate 2 parameters (```Pacejka```, ```LUT```) by additional ```float``` type parameters (```slip angle```, ```slip ratio```, ```yaw of vehicle``` etc ...) in order to behave vehicle as more complex.
## Getting Started
### Prerequisites
- 2022.3.19f1
- Universal Rendering Pipeline (URP)
### Installing
Clone the repository to any directory with the following command
```
git clone https://github.com/TLabAltoh/TLabVehiclePhysics.git
cd TLabVehiclePhysics
git submodule upadte --init
```
### How to play
- ```⇦ ⇨```: Handle
- ```⇧```: Accelerator
- ```⇩```: Brake
- ```Q```: Shift Up
- ```E```: Shift Down
- ```C```: Clutch
- ```ASDW```: Camera Rotation
- ```Z```: Switch Camera (```Pov``` / ```Follow```)
## Reference
- [Randomation-Vehicle-Physics](https://github.com/JustInvoke/Randomation-Vehicle-Physics)
- [Unity5-WheelCollider](https://github.com/unity-car-tutorials/Unity5-WheelColliderSource)