use ProjectileOrigin joint (#36)

This commit is contained in:
extrawurst
2025-04-22 23:08:39 +02:00
committed by GitHub
parent 36192d44cb
commit cb8a2b26bf
5 changed files with 59 additions and 7 deletions

View File

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