implement hitbox

This commit is contained in:
LabyStudio
2022-02-13 05:30:18 +01:00
parent 6e46e5e838
commit 82ea74085b
5 changed files with 98 additions and 7 deletions
@@ -72,7 +72,7 @@ window.Block = class {
}
collisionRayTrace(x, y, z, start, end) {
collisionRayTrace(world, x, y, z, start, end) {
start = start.addVector(-x, -y, -z);
end = end.addVector(-x, -y, -z);