Skip to content

Commit

Permalink
Fix a bug with the robot's aim and with the GI setting
Browse files Browse the repository at this point in the history
  • Loading branch information
clayjohn committed Mar 9, 2023
1 parent 6bb9eb7 commit 76893ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enemies/red_robot/red_robot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func animate(delta:=0.0):
if target_position != Vector3.ZERO:
animation_tree["parameters/aiming/blend_amount"] = clamp(aim_preparing / AIM_PREPARE_TIME, 0, 1)

var to_cannon_local = target_position + Vector3.UP * ray_mesh.global_transform
var to_cannon_local = (target_position + Vector3.UP) * ray_mesh.global_transform
var h_angle = rad_to_deg(atan2( to_cannon_local.x, -to_cannon_local.z ))
var v_angle = rad_to_deg(atan2( to_cannon_local.y, -to_cannon_local.z ))
var blend_pos = animation_tree.get("parameters/aim/blend_position")
Expand Down
2 changes: 1 addition & 1 deletion menu/settings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func load_settings():
return

if "gi_type" in d:
gi_type = int(d.gi) as GIType
gi_type = int(d.gi_type) as GIType

if "gi" in d:
gi_quality = int(d.gi) as GIQuality
Expand Down

0 comments on commit 76893ee

Please sign in to comment.