started work on arrows

This commit is contained in:
derek
2025-06-26 12:18:02 -05:00
parent e1b09df8f4
commit f7d3476a56
13 changed files with 150 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ extends Node3D
func _process(delta: float) -> void:
follow_mouse()
swap_models()
look_at(player.global_position, Vector3.UP)
point_from_player()
func follow_mouse():
var mouse_pos = MousePos.get_mouse_world_position(00001000)
@@ -22,3 +22,7 @@ func swap_models():
else:
sword_cursor.visible = true
bow_cursor.visible = false
func point_from_player():
var player_pos_xz_only = Vector3(player.global_position.x,global_position.y,player.global_position.z)
look_at(player_pos_xz_only, Vector3.UP)