Hi all,
i’ve got puppets hanging by the head, called from a scene
each of the puppets is in a lua file, e.g. newPuppet1 newPuppet2 etc…
each of them are a separate function e.g. function newPuppet1 … return newPuppet1
each of them have a different displayGroup e.g. puppet1Group puppet2Group and none of them
share any variable name e.g name for the joints.
if I call each of the them separately they hand in there perfectly and the different parts of the body (5) are perfectly aligned and the physics are all good.
if I put two together, somehow the second puppet is all messed up, i.e. the parts dont align anymore, etc…
after hours scratching my head I managed to track it down to when I add the statement of the second puppet. Note that is the only body part that is static.
physics.addBody(head, “static”, {density=1, friction=0.3, bounce=0.2})
i’ve removed all the other parts from the physics to be sure of that.
so if I add this statement to the second object the OTHER PUPPET (in the other lua, the other display group) is messed up,
if I dont put that statement, its all good,
if this head is set as ‘dynamic’ instead, it’s all good,
interesting also and probably related, if the head is declared as circle e.g.
physics.addBody(head, “static”, {density=1, friction=0.3, bounce=0.2, radius=45})
then the mess up of the first puppet is even worse, body parts are shown all over the place
anyone having seen that ?