Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

2D Wheel Joint physics

Discussion in 'Physics' started by TheOnlyPhenix, Sep 7, 2018.

  1. TheOnlyPhenix


    Sep 4, 2017
    I have experience with the 3d side of unity. I'm trying to work on my first 2d game, its a side view racing game.
    I've been trying to work with Wheel Joint 2D. It doesn't seem to be made for this purpose. They have only 2 parameters, setting max torque and target speed.
    Then there is no way to read RPM directly from the Wheel Joint 2D. You have to get angular velocity then manipulate that with the rest of your formulas.
    Anyways what i'm getting at is that i can't seem to get anywhere with it. Does anyone know of a better way of approaching this? Is there an asset for sale or am I just straight up using the wrong approach?
    I'd love to hear your thoughts!
  2. Deeeds


    Mar 15, 2018
    I'd say you're using the wrong approach, but that might not be the case, as it depends on what you're doing. I rolled my own.

    Melvin May, the guy responsible for 2D physics in Unity, is a bit of a doer and not much of an explainer. As such, he's got a few demos here, which you should dissect to understand how he's done things, and what can be done with those things.