implement swing arm animation and entity brightness

(cherry picked from commit b9e76a3d9bd1c0c89f1ffde1a3516ff115cf3235)
This commit is contained in:
LabyStudio
2022-04-14 18:36:06 +02:00
parent 62d7ba24b9
commit 96b287bedc
14 changed files with 147 additions and 48 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ window.BoundingBox = class {
* @param maxY Maximum y side
* @param maxZ Maximum z side
*/
constructor(minX, minY, minZ, maxX, maxY, maxZ) {
constructor(minX = 0, minY = 0, minZ = 0, maxX = 0, maxY = 0, maxZ = 0) {
this.epsilon = 0.0;
this.minX = minX;
+1 -1
View File
@@ -3,7 +3,7 @@ window.MathHelper = class {
/**
* Returns the greatest integer less than or equal to the double argument
*/
static floor_double(value) {
static floor(value) {
let i = parseInt(value);
return value < i ? i - 1 : i;
}