From 3fe3e5f183ff3df1005b7ddbd0489a094d0d64fd 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 23d93333ab..501714daf6 100644 --- a/common/sys/src/phys.rs +++ b/common/sys/src/phys.rs @@ -468,7 +468,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);