10 lines
268 B
GDScript
10 lines
268 B
GDScript
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 = Vector3(mouse_pos.x,.1,mouse_pos.z)
|
|
look_at(player.global_position, Vector3.UP)
|