Mostrando entradas con la etiqueta con GDScript;. Mostrar todas las entradas
Mostrando entradas con la etiqueta con GDScript;. Mostrar todas las entradas

sábado, 24 de agosto de 2024

Al presionar boton izquierdo del raton un MeshInstance3D da un giro en eje "Y", con GDScript;

 extends MeshInstance3D


# Called when the node enters the scene tree for the first time.

func _ready() -> void:

pass  # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.

func _process(delta: float) -> void:

pass  # Replace with function body.


func _input(event):

if event is InputEventMouseButton:

if event.pressed and event.button_index == 1:  # Botón izquierdo del ratón

rotate_y(0.9)