public EasyGameComponent AddBall() { ball = AddComponent("ball"); ball.EdgeFriction = 0; ball.Rotateable = true; ball.BounceFactor = 1; ball.Static = false; ball.SetPosition(200, 700); ball.IsBullet = true; ball.Nudge(.6f, -.6f); ball.MaxVelocity = 2f; ball.ConstantVelocity = 10; return(ball); }
public void PlayerNudge() { ball.Nudge(0, -.1f); }