示例#1
0
 void Update()
 {
     value = VectorMath.MoveTowards(value, desiredValue, speed);
     Output.Invoke(value);
 }
示例#2
0
 public (float angle, bool hasArrived) Tick(float timeStep)
 {
     angle      = VectorMath.RotateToAngle(angle, desiredAngle, timeStep * turnSpeed);
     hasArrived = arrived;
     return(angle, !hasArrived && arrived);
 }