add client side colisions to reduce lag(add debuging, ball is white when client is predicting movement)

This commit is contained in:
2024-10-04 00:10:42 +02:00
parent 6484969e4b
commit 975763d20f
5 changed files with 204 additions and 20 deletions

View File

@ -361,6 +361,7 @@ class Map
meshWallObs.position.set(x, this.playerLimits.up - 0.1, y);
else
meshWallObs.position.set(x, 0.4, y);
this.arrObject.push({mesh : meshWallObs, name:"", type:"wallObstacle", isUp:onTop})
return (meshWallObs);
};
@ -1075,4 +1076,4 @@ function createRing(colorO) {
return new THREE.Mesh(geometry, material);
}
export { Map, createStar, createBox, createRectangle, createRing, colorList };
export { Map, createStar, createBox, createRectangle, createRing, colorList };