godot_rl_DownFall / scripts /spawn_box.gd
edbeeching's picture
edbeeching HF staff
Upload folder using huggingface_hub
c5a8672 verified
raw
history blame contribute delete
349 Bytes
extends CollisionShape3D
func get_spawn_point() -> Vector3:
var half_extents = shape.extents / 2.0
var random_point = Vector3(
randf_range(-half_extents.x, half_extents.x),
randf_range(-half_extents.y, half_extents.y),
randf_range(-half_extents.z, half_extents.z)
)
#print(position, random_point)
return random_point + global_position