100 AVR.Core.AVR_DevConsole.cwarn(
"headTransform and neckTransform are not set!",
this);
104 Vector3 headAng = headTransform.eulerAngles;
105 Vector3 neckAng = neckTransform.eulerAngles;
106 float ang = Mathf.DeltaAngle(360.0f, provider.eyeRot.eulerAngles.z);
110 neckAng.x = ang * 0.5f;
115 neckAng.z = ang * 0.5f;
117 headTransform.eulerAngles = headAng;
118 neckTransform.eulerAngles = neckAng;
bool switchAxisXZ
Swap the X and Y axes of the head and neck. (If the head is inverted on your avatar, toggle this)
Transform neckTransform
3d models' transform of the neck
Transform headTransform
3d models' transform of the head