2024-04-19 13:15:35 +08:00
|
|
|
extends Node3D
|
|
|
|
|
|
|
|
@onready var camera = $Camera3D
|
|
|
|
|
2024-04-22 19:57:23 +08:00
|
|
|
#func _ready():
|
|
|
|
#var sp = get_screen_position($LCB)
|
|
|
|
#print("3D物体在屏幕上的位置: ", sp)
|
|
|
|
#
|
|
|
|
#func get_screen_position(mesh_instance):
|
|
|
|
#var global_position = mesh_instance.global_transform.origin
|
|
|
|
#return camera.unproject_position(global_position)
|