Function veloren_common_systems::phys::box_voxel_collision
source ยท fn box_voxel_collision<T: BaseVol<Vox = Block> + ReadVol>(
cylinder: (f32, f32, f32),
terrain: &T,
entity: Entity,
pos: &mut Pos,
tgt_pos: Vec3<f32>,
vel: &mut Vel,
physics_state: &mut PhysicsState,
dt: &DeltaTime,
was_on_ground: bool,
block_snap: bool,
climbing: bool,
land_on_ground: impl FnMut(Entity, Vel, Vec3<f32>),
read: &PhysicsRead<'_>,
ori: &Ori,
friction_factor: impl Fn(Vec3<f32>) -> f32,
)