Upgraded godot version to latest nightly build

feature-flyby
Jan Heemstra 2021-11-16 20:58:51 +01:00
parent 2eca36a8bc
commit b2da2d78f2
3 changed files with 10 additions and 5 deletions

View File

@ -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()

BIN
Godot/godot-linux-nightly-x86_64.zip (Stored with Git LFS)

Binary file not shown.

BIN
Godot/godot-windows-nightly-x86_64.zip (Stored with Git LFS)

Binary file not shown.