added sword cursor
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
extends Node3D
|
||||
|
||||
@export var player : Player
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
var mouse_pos = MousePos.get_mouse_world_position(00001000)
|
||||
if mouse_pos != null:
|
||||
global_position = mouse_pos
|
||||
global_position = Vector3(mouse_pos.x,.1,mouse_pos.z)
|
||||
look_at(player.global_position, Vector3.UP)
|
||||
|
||||
Reference in New Issue
Block a user