fix line of sight origin

This commit is contained in:
2025-04-12 15:21:27 +02:00
parent 3bdcf47c57
commit c79c64dadd
3 changed files with 8 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ fn on_trigger_gun(
};
let mut t = Transform::from_translation(state.pos).with_rotation(rotation);
t.translation += t.forward().as_vec3() * 2.;
t.translation += (t.forward().as_vec3() * 2.) + (Vec3::Y * 0.6);
commands
.spawn((