mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made airship terrain hitboxes smaller
This commit is contained in:
parent
f4b3d8145b
commit
f44ca1898c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user