Beispiel #1
0
 public Bullet(RectangleShape body, Vector2f moveUnitVector, Time liveTime, float speed)
 {
     Body  = body ?? throw new ArgumentNullException(nameof(body));
     Speed = speed;
     Timer = new Timer(liveTime);
     MovementUnitVector = moveUnitVector;
     Body.Rotation      = moveUnitVector.GetAngle();
 }