Set the Velocity Decay of an asteroids to .999
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ public class Asteroid extends MovingSpaceObject implements Collider, Drawable {
|
|||||||
mAngle = 2 * Math.PI * Math.random(); // random direction
|
mAngle = 2 * Math.PI * Math.random(); // random direction
|
||||||
mXVelocity = vel * Math.cos(mAngle);
|
mXVelocity = vel * Math.cos(mAngle);
|
||||||
mYVelocity = vel * Math.sin(mAngle);
|
mYVelocity = vel * Math.sin(mAngle);
|
||||||
|
mVelocityDecay = .999;
|
||||||
mNumberSplit = numberSplit;
|
mNumberSplit = numberSplit;
|
||||||
mHitsLeft = hitsLeft;
|
mHitsLeft = hitsLeft;
|
||||||
mRadius = radius;
|
mRadius = radius;
|
||||||
|
|||||||
Reference in New Issue
Block a user