From b2da2d78f270964fd6453c54a05b25904c870fa1 Mon Sep 17 00:00:00 2001 From: Jan Heemstra Date: Tue, 16 Nov 2021 20:58:51 +0100 Subject: [PATCH] Upgraded godot version to latest nightly build --- Game/Assets/Weapons/Weapon.gd | 7 ++++++- Godot/godot-linux-nightly-x86_64.zip | 4 ++-- Godot/godot-windows-nightly-x86_64.zip | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Game/Assets/Weapons/Weapon.gd b/Game/Assets/Weapons/Weapon.gd index bf48096..d30438d 100644 --- a/Game/Assets/Weapons/Weapon.gd +++ b/Game/Assets/Weapons/Weapon.gd @@ -35,7 +35,12 @@ var spread = spread_min var aim = - camera.get_global_transform().basis[2] var to = from + (aim * 1000) + spread_offset - var ray = space_state.intersect_ray(from, to, [player]) + var physics_ray_query_parameters_3d = PhysicsRayQueryParameters3D.new() + physics_ray_query_parameters_3d.from = from + physics_ray_query_parameters_3d.to = to + physics_ray_query_parameters_3d.exclude = [player] + + var ray = space_state.intersect_ray(physics_ray_query_parameters_3d) $"SFX/Shoot A".play() $"SFX/Shoot B".play() diff --git a/Godot/godot-linux-nightly-x86_64.zip b/Godot/godot-linux-nightly-x86_64.zip index aeafebf..9856a5d 100644 --- a/Godot/godot-linux-nightly-x86_64.zip +++ b/Godot/godot-linux-nightly-x86_64.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4dc650501cffdec81e4dcc830dfeea467a0c33119d50146606b6a123a61e19ac -size 256408771 +oid sha256:76f232c346abeb355411bf05181f4b50a78a97c5e6debfdde1c5eb59e8649df9 +size 263928191 diff --git a/Godot/godot-windows-nightly-x86_64.zip b/Godot/godot-windows-nightly-x86_64.zip index 8ec1417..5fe6374 100644 --- a/Godot/godot-windows-nightly-x86_64.zip +++ b/Godot/godot-windows-nightly-x86_64.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7e0876bae9b73c29e51da43b0f329ac4e06ef3e6ac944e84178ad89111325686 -size 185232325 +oid sha256:22366b0325c2488238334ebc70eae516bede578d73c620bdfbf89d14179e3f34 +size 191511501