Search Unity

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:
    124
    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:
    124
    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.