Skip to content

Commit

Permalink
Merge pull request #145 from samaritan-sw/riflefix
Browse files Browse the repository at this point in the history
Fix laser angle when shooting close to walls
  • Loading branch information
Phazorknight authored Apr 3, 2024
2 parents 55d5c79 + de93696 commit ed1802c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion COGITO/Wieldables/Wieldable_LaserRifle.gd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func hit_scan_collision(collision_point:Vector3):

# Spawning a laser ray
var instantiated_ray = laser_ray_prefab.instantiate()
instantiated_ray.draw_ray(bullet_point.get_global_transform().origin, collision_point + bullet_direction)
instantiated_ray.draw_ray(bullet_point.get_global_transform().origin, collision_point)
spawn_node.add_child(instantiated_ray)

if bullet_collision:
Expand Down

0 comments on commit ed1802c

Please sign in to comment.