# Steerable Oimo Car!

**URL:** <https://forum.babylonjs.com/t/steerable-oimo-car/7105>\
**Category:** Demos and projects\
**Created:** [November 20, 2019, 2:16pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105 "2019-11-20T14:16:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Givo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/givo/32/4968_2.png) [@Givo](https://forum.babylonjs.com/u/Givo)\
**Post date:** [November 20, 2019, 2:16pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/1 "2019-11-20T14:16:22Z")

</div>

Hi!

[https://playground.babylonjs.com/frame#TYD4D6#12](https://playground.babylonjs.com/frame#TYD4D6#12)

So I finally got the car in a working state! WASD to move and steer. Instead of rotating the joints, it works by having 3 joints per wheel. 1 for left, right and straight, and swaps between them to turn. It’s kinda like a successor to @RaananW’s car ([WebGL physics-based car using Babylon.js and Oimo.js](https://blog.raananweber.com/2016/09/06/webgl-car-physics-using-babylon-js-and-oimo-js/))

---

<div class="post-metadata">

**Author:** ![Gijs](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gijs/32/44_2.png) [@Gijs](https://forum.babylonjs.com/u/Gijs)\
**Post date:** [November 20, 2019, 6:52pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/2 "2019-11-20T18:52:31Z")

</div>

Hi @Givo, unfortunately the car doesn’t seem to work for me? It just rolls slowly, and the WASD keys do nothing

Edit: it works when the code is showing but not in frame

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [November 20, 2019, 7:15pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/3 "2019-11-20T19:15:36Z")

</div>

Check the thread out for Need for speed style physics based driving

> [@Need For Speed Style Racing System](https://forum.babylonjs.com/t/need-for-speed-style-racing-system/7087):
>
> Check out my latest demo/prototype for the Babylon Toolkit Racing System. Using all native Ammo.js physics for driving mechanics: Need For Speed Style Driving Burnouts Skidding Donuts Skill Based Driver AI Uses same exact driving mechanics as manual steering Driving Controls Acceleration/Braking/Reverse - Up And Down Arrows and WS Keys and Gamepad Triggers Steering - Left And Right Arrows and AD Keys and Gamepad Left Toggle stick Left and Right HandBraking - Space Bar and X Game…

---

<div class="post-metadata">

**Author:** ![Givo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/givo/32/4968_2.png) [@Givo](https://forum.babylonjs.com/u/Givo)\
**Post date:** [November 20, 2019, 7:21pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/4 "2019-11-20T19:21:05Z")

</div>

@Gijs I changed the event listeners to be bound to the canvas, but still no luck. [https://www.babylonjs-playground.com/frame#TYD4D6#13](https://www.babylonjs-playground.com/frame#TYD4D6#13)  
It works locally, though.

@MackeyK24 I saw your driving system, and it looks really cool! That makes another person making one. (Someone else on the forum was also). This project was a little break from my main one, Nyns. _now how do I program rolling?_

---

<div class="post-metadata">

**Author:** ![Givo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/givo/32/4968_2.png) [@Givo](https://forum.babylonjs.com/u/Givo)\
**Post date:** [November 20, 2019, 9:46pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/5 "2019-11-20T21:46:35Z")

</div>

Some tweaking later and it is now fixed! [https://www.babylonjs-playground.com/frame#TYD4D6#14](https://www.babylonjs-playground.com/frame#TYD4D6#14)

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [November 21, 2019, 3:58pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/6 "2019-11-21T15:58:00Z")

</div>

Awesome!!

This is really great. It’s really getting there! I am following this thread now 🙂

---

<div class="post-metadata">

**Author:** ![Givo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/givo/32/4968_2.png) [@Givo](https://forum.babylonjs.com/u/Givo)\
**Post date:** [November 21, 2019, 4:21pm UTC](https://forum.babylonjs.com/t/steerable-oimo-car/7105/7 "2019-11-21T16:21:23Z")

</div>

Nice! 😃

Recently I’ve started playing Trackmania again, and I might make a driving style like it. (In the original Trackmania, you’re front wheels don’t turn when turning. But the driving part feels great.)

[Here](https://www.youtube.com/watch?v=XDWsG8fMrnE) is a speedrun of some Trackmania Original courses in the Trackmania United Forever engine.
