working on picking up arrows
This commit is contained in:
11
Scripts/csg_spawner.gd
Normal file
11
Scripts/csg_spawner.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user