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); }
public void StartMovement(HandController hand) { handController = hand; }
protected abstract void UpdateMovement(HandController hand);
public void StopMovement() { handController = null; }