Ir al contenido principal

Entradas

Mostrando las entradas de octubre, 2019

Godot 3D, Sigue al cursor

Voltea a ver al cursor y cuando haces clic el personaje lo sigue. La cámara: El personaje: Estúdialo con calma: http://www.mediafire.com/file/eovawx68957f7g7/Ve_al_Cursor.zip/file Nota: Si te sale este error: Node origin and target are in the same position, look_at() failed Cambia esta línea: func _ready(): punto = Vector3(0, get_translation().y, 0) Por esta: func _ready(): punto = Vector3(1, get_translation().y, 0)

Godot 3D, Mirar el cursor

El personaje voltea a ver al cursor siempre y cuando el cursor se encuentre en un área de colisión. Comenzamos con la cámara. Sus ordenes son las siguientes. Ahora nuestro personaje. Debe seguir con estas reglas. Llévatelo para tu computadora. http://www.mediafire.com/file/6pdm29o2s25z05f/Gira_al_cursor.zip/file Nota: Si te sale este error: Node origin and target are in the same position, look_at() failed Cambia esta línea: func _ready(): punto = Vector3(0, get_translation().y, 0) Por esta: func _ready(): punto = Vector3(1, get_translation().y, 0)