11 lines
405 B
GDScript
11 lines
405 B
GDScript
class_name RotationSetBehavior
|
|
extends BulletSetBehavior
|
|
|
|
|
|
@export_custom(0, "radians_as_degrees,suffix:°/s") var rotation_speed: float = 0.0
|
|
@export_custom(0, "radians_as_degrees,suffix:°/s") var spawn_rotation_speed: float = 0.0
|
|
|
|
|
|
func _process_set(bullet_set: BulletSet, delta: float) -> void:
|
|
bullet_set.rotation += rotation_speed * delta
|
|
bullet_set.spawn_rotation += spawn_rotation_speed * delta
|