Пример #1
0
 public void ExplosionInteract(object sender, PointF Origin, PointF Vector)
 {
     //same as normal, get angle and nudge us in the appropriate direction.
     double Strength = Vector.Magnitude();
     double usea = BCBlockGameState.GetAngle(Origin, CenterPoint());
     PointF usevector = new PointF((float)(Math.Sin(usea) * Strength), (float)(Math.Cos(usea)));
     Velocity = new PointF(Velocity.X + usevector.X, Velocity.Y + usevector.Y);
 }