lunes, 25 de diciembre de 2023

script para godot3d 4.2 cuando algo entra en el area3d se encoge el objeto;

 extends Area3D



# 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 _on_area_entered(area):

scale.y-=0.05

pass


SCRIPT EN GODOT3D 4.2 QUE ACTIVA UNA ANIMACION DE UN PERSONAJE CON HUESOS...;

 extends Node3D



# 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):

$AnimationPlayer.play("Game_engineAction")

pass

---------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
Este script anima una animacion de un humanoide, primero se hace con makehuman-community un personaje luego de asignarle un esqueleto se pasa a fbx a blender , en blender se anima a mano, y de hay se exporta a godot3d 4.2 en formato glb, en el script se pone el nombre de la animacion....."Game_engineAction" en este caso, pero se puede poner el nombre que queramos....