示例#1
0
        protected override void UpdateMovement(HandController hand)
        {
            Vector3 handDeltaS = hand.DeltaS();

            float moveCoeff = Vector3.Dot(
                thisMoveDirection.forward,
                handDeltaS);

            transform.rotation *= Quaternion.AngleAxis(
                moveCoeff * speed * Time.deltaTime,
                thisRotationAxis.forward);
        }
示例#2
0
 public void StartMovement(HandController hand)
 {
     handController = hand;
 }
示例#3
0
 protected abstract void UpdateMovement(HandController hand);
示例#4
0
 public void StopMovement()
 {
     handController = null;
 }