Set the Velocity Decay of an asteroids to .999
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
1 parent
0e0b001c04
commit
74dd62e4d0
1 file changed
+1
-1
@@ -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