use ProjectileOrigin joint (#36)
This commit is contained in:
@@ -59,7 +59,7 @@ fn on_trigger_arrow(
|
||||
};
|
||||
|
||||
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.;
|
||||
|
||||
let damage = heads_db.head_stats(state.head).damage;
|
||||
commands.spawn((Name::new("projectile-arrow"), ArrowProjectile { damage }, t));
|
||||
|
||||
Reference in New Issue
Block a user