domingo, 31 de diciembre de 2023

Script para godot destruye un CollisionShape3D pero la señal sale desde un area3d y se asigna al CollisionShape3D;

 extends CollisionShape3D



# 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_3d_body_entered(body):

queue_free()

pass # Replace with function body.


Script para godot3d 4.2 cuando entra en area3d un objeto el contenido aumenta de tamaño en los 3 ejes y,z,x;

 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+=2.2

scale.x+=2.2

scale.z+=2.2

pass # Replace with function body..


viernes, 29 de diciembre de 2023

Script para Godot3d 4.2 cuando algo entra en area 3d se borra el objeto, cuando sale no gira nada porque nada hay;

 extends Area3D


func _ready():


pass # Replace with function body.


func _process(delta):


pass


func _on_area_entered(area):


queue_free()


pass # Replace with function body.


func _on_area_exited(area):


rotate_x(180)

pass

  

Script para Godot3d 4.2 cuando entra en el area3d gira 180 grados cuando sale otros 180 grados mas;

 extends Area3D


func _ready():


pass # Replace with function body.


func _process(delta):


pass


func _on_area_entered(area):


rotate_x(180)


pass # Replace with function body.


func _on_area_exited(area):


rotate_x(180)

pass

  


Script para godot3d 4.2 cuando entra en el area gira 180 grados cuando sale del area borra esa area3d;

 extends Area3D


func _ready():


pass # Replace with function body.


func _process(delta):


pass


func _on_area_entered(area):


rotate_x(180)


pass # Replace with function body.


func _on_area_exited(area):


queue_free()

pass

  


Script para godot cuando entra en el area3d un objeto rota , cuando sale se traslada;

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

rotate_x(180)


pass # Replace with function body.



func _on_area_exited(area):

translate(Vector3(2, 0,0))

pass

jueves, 28 de diciembre de 2023

Sript para godot3d 4.2 cuando entra algo en el area rota 180 grados;

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

rotate_x(180)

pass # Replace with function body.