示例#1
0
 protected void OnFistEnd()
 {
     Logger.Info("OnFistEnd");
     fisting          = false;
     grabbing         = false;
     currentEffector  = null;
     startingRotation = Quaternion.identity;
 }
示例#2
0
        protected void testGrabTarget()
        {
            fistStart = Time.time;
            var closest = FindIkEffectorAndActorInRange();

            if (closest != null)
            {
                fisting          = true;
                currentEffector  = closest;
                startingRotation = IKHelper.GetHandRotation(hand);
            }
            else
            {
                Logger.Info("No effector in range");
            }
        }