increase player range

This commit is contained in:
griffi-gh 2023-01-28 21:30:51 +01:00
parent 0c25bfa5ae
commit 407f87aaab

View file

@ -50,6 +50,6 @@ pub fn update_player_raycast(
for (_, transform, report) in (&main_player, transform.inserted_or_modified(), &mut raycast).iter() {
let (_, rotation, position) = transform.0.to_scale_rotation_translation();
let direction = rotation * Vec3::NEG_Z;
*report = LookingAtBlock(world.raycast(position, direction, Some(10.)));
*report = LookingAtBlock(world.raycast(position, direction, Some(30.)));
}
}