road-rage-tank/levels/trees.gd

9 lines
212 B
GDScript

@tool
extends Node3D
@export_tool_button("Randomize Tree Rotations")
var _rot_button = _randomize_rotations
func _randomize_rotations() -> void:
for child in get_children():
child.rotation.y = randf() * TAU