Made airship terrain hitboxes smaller

This commit is contained in:
Joshua Barretto 2021-03-12 15:26:12 +00:00 committed by Avi Weinstock
parent f4b3d8145b
commit f44ca1898c

View File

@ -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);