diff options
| author | mat <git@matdoes.dev> | 2026-05-07 01:42:52 -0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | ee7358ebc2d3a033b48b3a97af4255e1efba9ef9 (patch) | |
| tree | 7a69c0676225bab4e37b44fb398829d554708623 /azalea-physics/src/collision/shape.rs | |
| parent | a6fbdea961c2f8a788b362cbde1eab356d298e84 (diff) | |
| download | azalea-drasl-ee7358ebc2d3a033b48b3a97af4255e1efba9ef9.tar.xz | |
correct shapes for blocks with random offsets
Diffstat (limited to 'azalea-physics/src/collision/shape.rs')
| -rw-r--r-- | azalea-physics/src/collision/shape.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/azalea-physics/src/collision/shape.rs b/azalea-physics/src/collision/shape.rs index 13c2f0d6..c89a08ed 100644 --- a/azalea-physics/src/collision/shape.rs +++ b/azalea-physics/src/collision/shape.rs @@ -326,14 +326,6 @@ pub enum VoxelShape { } impl VoxelShape { - // public double min(Direction.Axis var1) { - // int var2 = this.shape.firstFull(var1); - // return var2 >= this.shape.getSize(var1) ? 1.0D / 0.0 : this.get(var1, - // var2); } - // public double max(Direction.Axis var1) { - // int var2 = this.shape.lastFull(var1); - // return var2 <= 0 ? -1.0D / 0.0 : this.get(var1, var2); - // } fn min(&self, axis: Axis) -> f64 { let first_full = self.shape().first_full(axis); if first_full >= self.shape().size(axis) as i32 { |
