Skip to content

Commit

Permalink
fix mega marble not respecting mass
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomityGuy committed Jun 13, 2024
1 parent 5cab872 commit 80574d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Marble.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2408,7 +2408,7 @@ class Marble extends GameObject {
this.netFlags |= MarbleNetFlags.DoBlast;
var amount = this.blastTicks / (30000 >> 5);
this.blastPerc = amount;
var impulse = this.currentUp.multiply(amount * 8);
var impulse = this.currentUp.multiply(amount * 8).multiply(1 / this.getMass());
this.applyImpulse(impulse);
if (!this.isNetUpdate) {
if (this.controllable)
Expand All @@ -2422,7 +2422,7 @@ class Marble extends GameObject {
} else {
if (this.blastAmount < 0.25)
return false;
var impulse = this.currentUp.multiply(this.blastAmount * 8);
var impulse = this.currentUp.multiply(this.blastAmount * 8).multiply(1 / this.getMass());
this.applyImpulse(impulse);
if (this.controllable)
AudioManager.playSound(ResourceLoader.getResource('data/sound/use_blast.wav', ResourceLoader.getAudio, this.soundResources));
Expand Down

0 comments on commit 80574d5

Please sign in to comment.