mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix marble bounces
This commit is contained in:
parent
85e9ff0c0c
commit
c9a1843edd
1 changed files with 2 additions and 1 deletions
|
|
@ -137,6 +137,7 @@ class Marble extends GameObject {
|
|||
var _airAccel:Float = 5;
|
||||
var _maxDotSlide = 0.5;
|
||||
var _minBounceVel:Float = 0.1;
|
||||
var _minBounceSpeed:Float = 3;
|
||||
var _minTrailVel:Float = 10;
|
||||
var _bounceKineticFriction = 0.2;
|
||||
var minVelocityBounceSoft = 2.5;
|
||||
|
|
@ -636,7 +637,7 @@ class Marble extends GameObject {
|
|||
}
|
||||
|
||||
function bounceEmitter(speed:Float, normal:Vector) {
|
||||
if (this.bounceEmitDelay == 0 && this._minBounceVel <= speed) {
|
||||
if (this.bounceEmitDelay == 0 && this._minBounceSpeed <= speed) {
|
||||
this.level.particleManager.createEmitter(bounceParticleOptions, this.bounceEmitterData, this.getAbsPos().getPosition());
|
||||
this.bounceEmitDelay = 0.3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue