Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Locking Axis

Discussion in 'Physics for ECS' started by Ofx360, May 16, 2020.

  1. Ofx360

    Ofx360

    Joined:
    Apr 30, 2013
    Posts:
    155
    Will a more straightforward way to set locked axes like the UnityEngine physics component be coming at some point? Or is one available - Like an additional component?
     
  2. Adam-Mechtley

    Adam-Mechtley

    Administrator

    Joined:
    Feb 5, 2007
    Posts:
    290
    It is in the back log, yes, but just hasn't floated to the top of the priority queue yet. Depending what makes sense for your use case right now, I would suggest looking at samples like this one or this one.
     
    ekakiya likes this.
  3. timothy_j

    timothy_j

    Joined:
    Apr 11, 2020
    Posts:
    12
    Note for people like me who just cut and paste the sample code: when using the second link (or any of the joints from the joints sample) you also need the base joint class and this conversion system to make it work.