Made airship terrain hitboxes smaller

This commit is contained in:
Joshua Barretto
2021-03-12 15:26:12 +00:00
parent fcaf2b50d1
commit 2c1c07c6b8

View File

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