| 1 | {{{ #!Markdown |
| 2 | |
| 3 | |
| 4 | # Edy's Vehicle Physics |
| 5 | |
| 6 | ![Edy's Vehicle Physics](http://www.edy.es/unity/Offroader/Offroader-1-small.jpg "Edy's Vehicle Physics") |
| 7 | |
| 8 | ## Physically realistic, stable and fun vehicle physics in Unity / PhysX |
| 9 | |
| 10 | __Live demo:__ [http://www.edy.es/unity/offroader.html][1] |
| 11 | __Documentation:__ [http://projects.edy.es/trac/edy_vehicle-physics/wiki/WikiStart][8] |
| 12 | __Videos:__ [http://www.youtube.com/user/EdyJ#grid/user/B7AEBA14B84643F2][9] |
| 13 | |
| 14 | 4 vehicles: Pickup / GTA4-Pickup / Bus / Sport Coupe (select with PgUp / PgDown). |
| 15 | Driving aids. Vehicle damage. Visual tire effects. |
| 16 | |
| 17 | #### Based on Unity's standard WheelCollider component: |
| 18 | - Realistic behavior with extremely low CPU cost, as everything is handled directly from the PhysX core. |
| 19 | - Suitable for iPhone, mobile devices, and low-end systems. |
| 20 | - Can handle dozens of physically active vehicles in the same scene at effective CPU cost. |
| 21 | - Wheel's friction curves can be adjusted on the fly and get the result in the game instantly. |
| 22 | - Telemetry shows the friction curves and the wheel's slip rate in realtime, which allows rapid fine-tunning (B then shift-B, see pic). |
| 23 | - Realistic suspension: spring, damper, stabilizer bar, weight transfers. |
| 24 | |
| 25 | #### Focused on gameplay, simplicity and efficiency: |
| 26 | - Features motor power, brake power, steering angle, anti-roll, traction balance (front, rear, or anything in between), brake balance, sideways grip balance (controls oversteer / understeer), aerodynamic drag, max speed... |
| 27 | - Driving aids: ABS limits the brake power, TC limits the motor power, ESP limits the steering angle with speed. |
| 28 | - Stabilizer (anti-roll) bars control the chances of the car to flip over. |
| 29 | - Visual effects: skidmarks, realistic tire smoke and burnouts. |
| 30 | - Fully customizable car damage (min force, max deformation, impact radius...) that also affects the wheels and handling. |
| 31 | |
| 32 | #### Easy to use and integrate in any project: |
| 33 | - Car physics core consists in three small script files (less than 1000 lines together). |
| 34 | - A brand new car can be up and running from scratch (no prefabs) in two minutes. |
| 35 | - Additional script files available for other features (car settings, car cameras, telemetry, etc.) |
| 36 | - Exposes as few parameters as possible, each one with specific and predictable effect in the car's handling & behavior (less parameters means easier to configure the gameplay). |
| 37 | - Can simulate a broad range of four wheeled vehicles (city car, offroad, pickup, truck, bus, sports car, racing car...) with more to come. |
| 38 | |
| 39 | #### Terms & Conditions (code only): |
| 40 | - Use for unlimited time, any number of projects, royalty-free. |
| 41 | - Keep the copyright notices on top of the source files. |
| 42 | - Resale or redistribute as anything except a final product to the end user (asset / library / engine / middleware / etc.) is not allowed. |
| 43 | - Put me (Angel Garcia "Edy") in your game's credits as author of the vehicle physics. |
| 44 | |
| 45 | Bug reports, improvements to the code, suggestions on further developments, etc are always welcome. |
| 46 | Unity forum user: [Edy][6] |
| 47 | Email: [edytado@gmail.com](mailto:edytado@gmail.com) |
| 48 | |
| 49 | City scenery provided by [ikiman under his conditions][5]. Not for commercial purposes. |
| 50 | Vehicles (except the L200) provided by [LuckyMountain][7]. Not for commercial purposes. |
| 51 | The Mitsubishi L200 is a free model available at 3D repositories on the web. |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | [1]: http://www.edy.es/unity/offroader.html |
| 60 | [2]: http://www.edy.es/unity/offroader/Offroader-FrictionCurves.jpg |
| 61 | [3]: http://www.edy.es/unity/Offroader/Offroader-1-small.jpg |
| 62 | [5]: http://forum.unity3d.com/threads/47366-New-Unity-Car-Tutorial-GTA4-Vehicle-Replica-Project-4050?p=430844&viewfull=1#post430844 |
| 63 | [6]: http://forum.unity3d.com/members/20111-Edy |
| 64 | [7]: http://forum.unity3d.com/members/15993-LuckyMountain |
| 65 | [8]: wiki:WikiStart |
| 66 | [9]: http://www.youtube.com/user/EdyJ#grid/user/B7AEBA14B84643F2 |
| 67 | |
| 68 | }}} |