Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Box2D prismatic and revolute gear joint implementation

Discussion in 'Physics' started by alexanderperrin, Sep 26, 2023.

  1. alexanderperrin

    alexanderperrin

    Joined:
    Dec 15, 2016
    Posts:
    65
    Hello,

    For a while I've been looking to understand if there's any way of implementing the Box2D gear joint within Unity, either via native plugin or as a C# behaviour.

    Is there a way to hook into the internal physics updates for Unity's Box2d implementation to achieve this, or can anyone recommend another way that would allow me to simulate a stable gear joint that runs in Unity's 2D physics simulation?

    Thanks!

    Alex