Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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.