movement system rework
This commit is contained in:
parent
900502ec8a
commit
792465a33c
7 changed files with 47 additions and 31 deletions
|
|
@ -98,7 +98,7 @@ func drop():
|
|||
drop_data.remaining_ammo = current_state.remaining_ammo
|
||||
drop_data.slot = current_state.slot
|
||||
drop_data.position = camera.global_position
|
||||
drop_data.impulse = -camera.global_basis.z * 10
|
||||
drop_data.impulse = -camera.global_basis.z * 10 + player.velocity
|
||||
|
||||
Session.spawn(drop_data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue