Get a 3D Object's Position on the Screen?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sdhy

I’m not looking for the cube’s 3D position in the game’s world.
I’m looking for its position on my computer screen.

The end-goal is to have RPG-Dialogue appear above characters’ heads.

Could I use VisibilityEnabler or something?

P.S. I’m kind of rusty getting back into Godot, and even then, I never made a full game.

:bust_in_silhouette: Reply From: kidscancode

Camera has a method for this: unproject_position():

Thanks!

After figuring out how to use get_node() and onready var, I’ve managed to get label text to appear on top of a 3D cube!

Sdhy | 2020-01-07 22:30