hi, i am working on a ragdoll game and i placed a pin behavior on the head, but the problem is when i run the game, the ragdoll moves automatically to the head position ... example : if the head is pointing to the right, the ragdoll moves to the right.
can anyone help me with that?
Start by taking a look at the imagepoint of the head. Without looking at your code, it's difficult to say specifically. Also remove the pin behavior and see what happens.
Develop games in your browser. Powerful, performant & highly capable.
ok but where could i put the imagepoint, i tried every imagepoint position before posting this topic, and... i can screenshot my head events if u want. and if i removed the pin behavior,one bug will be removed but another one wil be created. so i dont know what to do.
this is the condition and actions...
Condition : On start of layout
Seems you are creating three different joints at the same position AND pinning the head..
Why 3 different joints and why use the pin behaviour at all?
when i remove the pin behavior, the head gets very far from the body, so i putted the pin behavior on the head so it doesn't get far.... and i putted the 3 joints because...
1.limited revolute joint : i want to make the head in an locked angle
2.distance joint : because i want to make the head in a locked position to the body.... and it seems it didnt work so i placed the pin behavior.
P.S when i placed the pin behavior, i solved one bug, but i created another bug ..
You should only create the limited revolute joint, and not use pin. If the joint is being created properly the head will stay where you want it.
The revolute joint is for limited angle .... i want a limited distance, from the head to the body, Anyway i tried it before but it didn't work, so i need another solution.