Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question ConstraintBlock3.Capacity = 3, meaning we can't have joints with more than 3 constraints

Discussion in 'Physics for ECS' started by Tigrian, Sep 30, 2022.

  1. Tigrian

    Tigrian

    Joined:
    Mar 21, 2021
    Posts:
    27
    Hello,

    While upgrading my script to 1.0.0-exp8, I found an error in my joints that setup more than 3 constraints.
    Because the internal const byte ConstraintBlock3.Capacity is set to 3 in Unity.Physic code, I can't set up the joint the way I like :(. What should I do to upgrade my joints? Why are the constraints atoms number limited in 1.0 (for performance reasons?)?
     
  2. Tigrian

    Tigrian

    Joined:
    Mar 21, 2021
    Posts:
    27
    Well, it seems you can put multiple joints between two entities, and all this in the same baker (to keep one monobehaviour authoring). I've split my constraints into two joints and my problem seems to be solved (at least I don't get any errors). But I'm still curious of why the constraints number is limited, and I would like to be sure that the multiple joints solution is the way to upgrade joints with more than 3 constraints.