How do I get my turret to be parented onto the specific child of another object IE a car or vehicle. More specifically a bone within a child of this vehicle. So child of a child.
I can’t get this code to work… Do I have to use GetChild or can I use FindChild?
Code so far.
public GameObject turret;
public GameObject body;
void Update(){
if(Input.GetKeyDown(KeyCode.H)){
turret.transform.parent = body.transform.FindChild("TurretBone");
}
}