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

PhysicsBody no position/rotation constraints?

Discussion in 'Entity Component System' started by ADNCG, Dec 4, 2019.

  1. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    992
    I can't find any information to reproduce the behaviour of the old RigidBody constraints. e.g. lock the body on the z axis for 2D games.

    Is there a way built-in in the ECS physics system or do I need to set the translation/rotation components every frame?

    Edit : Meant to post this in the DOTS subforum.

    Edit2 : Got it working using the following post :
    https://forum.unity.com/threads/unity-physics-discussion.646486/page-6#post-4448050
     
    Last edited: Dec 4, 2019
    peterhayman likes this.