mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 20:08:20 -06:00
increase player range
This commit is contained in:
parent
0c25bfa5ae
commit
407f87aaab
|
@ -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.)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue