Commit 8b9ca7cc authored by BERTON Florian Gaetan Hubert's avatar BERTON Florian Gaetan Hubert
Browse files

#9 modifications to have better head bounding boxes

parent 8f972f83
......@@ -254,8 +254,8 @@ public class LoadEnv : MonoBehaviour
// SET BOUNDING BOXES ITEM
gameObject.AddComponent<GetMemberPositionPlasticMan>();
GameObject headBoundingBox = Instantiate(Resources.Load<GameObject>("HeadBoundingBoxes/Hbb_PlasticMan"));
Transform Neck = gameObject.transform.Find("Plasticman:Reference/Plasticman:Hips/Plasticman:Spine/Plasticman:Spine1/Plasticman:Spine2/Plasticman:Spine3/Plasticman:Neck");
headBoundingBox.transform.parent = Neck;
Transform Head = gameObject.transform.Find("Plasticman:Reference/Plasticman:Hips/Plasticman:Spine/Plasticman:Spine1/Plasticman:Spine2/Plasticman:Spine3/Plasticman:Neck/Plasticman:Head");
headBoundingBox.transform.parent = Head;
// -----------------
// SET AGENT'S COLOR
......
......@@ -68,7 +68,8 @@ public class GetMemberPositionRocketBox : GetMemberPosition
"Hbb_Nose",
"Hbb_Chin",
"Hbb_L_Ear",
"Hbb_R_Ear"
"Hbb_R_Ear",
"Hbb_BackBottomHead"
};
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment