From b0bd992adcff71ee294dd05060e00e652f62a7b2 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 16 Mar 2025 13:41:17 -0500 Subject: Fluid physics fixes (#210) * start fixing code related to fluid physics * implement force_solid for blocks * afk pool test --- azalea-core/src/delta.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-core/src/delta.rs') diff --git a/azalea-core/src/delta.rs b/azalea-core/src/delta.rs index 238262a2..dd598f77 100755 --- a/azalea-core/src/delta.rs +++ b/azalea-core/src/delta.rs @@ -51,8 +51,8 @@ impl Vec3 { pub fn normalize(&self) -> Vec3 { let length = f64::sqrt(self.x * self.x + self.y * self.y + self.z * self.z); - if length < 1e-4 { - return Vec3::default(); + if length < 1e-5 { + return Vec3::ZERO; } Vec3 { x: self.x / length, -- cgit v1.2.3