예제 #1
0
 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;
     }
 }
예제 #2
0
 void Start()
 {
     rb            = GetComponent <Rigidbody>();
     limbCoord     = GetComponentInParent <PhysicLimbCoord>();
     surfaceNormal = Vector3.up;
 }