add client side colisions to reduce lag(add debuging, ball is white when client is predicting movement)
This commit is contained in:
@ -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 };
|
||||
|
Reference in New Issue
Block a user