Topic was automatically imported from the old Question2Answer platform.
Asked By
websterek
HI, how should I use look_at() funcion? Right now with this sample code below it’s always returning Null to Output
extends Spatial
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
pass
func _process(delta):
if Input.is_action_just_pressed("ui_accept"):
print(look_at_from_position(Vector3(0, 0, 0), Vector3(10, 0, 5), Vector3(0, 1, 0)))