void Start() { rb = GetComponent <Rigidbody>(); limbCoord = GetComponent <PhysicLimbCoord>(); headRb = head.GetComponent <Rigidbody>(); rb.angularDrag = internalAngularDrag; Rigidbody[] internalRbs = GetComponentsInChildren <Rigidbody>(); foreach (Rigidbody r in internalRbs) { r.angularDrag = internalAngularDrag; } }
void Start() { rb = GetComponent <Rigidbody>(); limbCoord = GetComponentInParent <PhysicLimbCoord>(); surfaceNormal = Vector3.up; }