From 2c1c07c6b8b3c7737c17250c0529b978d5244bdb Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Fri, 12 Mar 2021 15:26:12 +0000 Subject: [PATCH] Made airship terrain hitboxes smaller --- common/sys/src/phys.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/sys/src/phys.rs b/common/sys/src/phys.rs index a7e85f36fe..55749deba0 100644 --- a/common/sys/src/phys.rs +++ b/common/sys/src/phys.rs @@ -457,7 +457,8 @@ impl<'a> PhysicsSystemData<'a> { Collider::Voxel { .. } => { // for now, treat entities with voxel colliders as their bounding // cylinders for the purposes of colliding them with terrain - let radius = collider.get_radius() * scale; + // Actually no, make them smaller to avoid lag + let radius = collider.get_radius() * scale * 0.1; let (z_min, z_max) = collider.get_z_limits(scale); let cylinder = (radius, z_min, z_max);