mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix weird grid bug
This commit is contained in:
parent
0b899d99ef
commit
74c5cf391e
2 changed files with 2 additions and 2 deletions
|
|
@ -1959,7 +1959,7 @@ class Marble extends GameObject {
|
||||||
function calculateNetSmooth() {
|
function calculateNetSmooth() {
|
||||||
if (this.netCorrected) {
|
if (this.netCorrected) {
|
||||||
this.netCorrected = false;
|
this.netCorrected = false;
|
||||||
this.netSmoothOffset.load(this.lastRenderPos.sub(this.oldPos));
|
this.netSmoothOffset.load(this.lastRenderPos.sub(this.oldPos).sub(this.velocity.multiply(0.032)));
|
||||||
// this.oldPos.load(this.posStore);
|
// this.oldPos.load(this.posStore);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ class Grid {
|
||||||
surf.key = searchKey;
|
surf.key = searchKey;
|
||||||
if (searchbox.containsBounds(surf.boundingBox) || searchbox.collide(surf.boundingBox)) {
|
if (searchbox.containsBounds(surf.boundingBox) || searchbox.collide(surf.boundingBox)) {
|
||||||
foundSurfaces.push(surf);
|
foundSurfaces.push(surf);
|
||||||
surf.key = 1;
|
surf.key = searchKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue