forked from unfa/liblast
Upgraded godot version to latest nightly build
parent
2eca36a8bc
commit
b2da2d78f2
|
@ -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)
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)
BIN
Godot/godot-windows-nightly-x86_64.zip (Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue