示例#1
0
 /// <summary>
 /// Adds a Velocity vector to the current velocity
 /// </summary>
 /// <param name="velocity"></param>
 public void AddVelocity(Vector3 velocity)
 {
     if (velocity.HasNan()) throw new Exception("invalid input");
     this.Velocity += velocity;
 }