Hello,
I am trying to make an object child of a ragdoll bone.
At the ragdoll script i turned the starting Bone a public variable.
public class SkeletonRagdoll : MonoBehaviour {
public Bone startingBone;
Then grab it in the script that controls the characters.
But i am having trouble to state that the object i want becomes child of this bone.
I tryied this two methods unsuccessfully.
camPos.transform.parent = //unable to make the bone a Gameobjet.
// get a null reference here in the ragdoll activation, and when it continues the position is not right.
camPos.transform.position = new Vector3(ragdollStartBone.x ,ragdollStartBone.y,0f);
Someone have this tip?
Thanks!