Anyway to count the number of joints a rigid body is involved in?
I would like to have a rigid body that stops making joints once it made 3 fixed joints, but i can't find a way to list the joints that are associated with a rigid body...
Ideally, I would like to do : If( rigidbody.getjoints().size <= 3) { make joint; }
I tried getComponents but it doesn't return anything even when I have a lot of joints on my rigidbody... Am I missing something?
How about GetComponentsInChildren()? GetComponents() only works on that specific object.
Good remark.
I have to get a look at both I think, because even if one of the collider has the max number of joints, if the other collider has not, the other collider can still make a joint.
I have to check this out...
Your answer
Follow this Question
Related Questions
Move 2 objects as one 0 Answers
how to reattach the hinge joint after it is destroyed? 0 Answers
Ragdoll from Blender doesnt work in Unity 0 Answers
GameObjects pass through each other when they are connected with configurable joint 1 Answer
Attach Kinematic Collider To Non-Kinematic Collider 1 Answer