Files
DailyDungeon/Scripts/csg_spawner.gd
2025-06-26 17:04:35 -05:00

12 lines
285 B
GDScript

extends CSGBox3D
class_name CSGSpawner
func _ready() -> void:
visible = false
func random_box_pos():
var x : float = randf_range(size.x / 2, -size.x /2)
var y : float = randf_range(size.y/ 2, -size.y /2)
var z : float = randf_range(size.z / 2, -size.z /2)
return Vector3(x,y,z)