Mostrando entradas con la etiqueta SCRIPT SIMPLE ELEVACION DE UN RigidBody3D EN EL EJE "Y" PARA GODOT 4.2 3D;PRESIONANDO LETRA"e";. Mostrar todas las entradas
Mostrando entradas con la etiqueta SCRIPT SIMPLE ELEVACION DE UN RigidBody3D EN EL EJE "Y" PARA GODOT 4.2 3D;PRESIONANDO LETRA"e";. Mostrar todas las entradas

jueves, 8 de febrero de 2024

SCRIPT SIMPLE ELEVACION DE UN RigidBody3D EN EL EJE "Y" PARA GODOT 4.2 3D; PRESIONANDO LETRA"e";

 extends RigidBody3D



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

func _ready():

pass # Replace with function body.



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

func _process(delta):

pass

func _unhandled_input(event):

if event is InputEventKey and event.pressed:

if event.keycode == KEY_E: 

apply_impulse(Vector3(0,110,0))

$AudioStreamPlayer3D.play()

pass