bullets bullets bullets bullets
This commit is contained in:
parent
846040c0e4
commit
55059788b2
25 changed files with 139 additions and 91 deletions
11
systems/bullets/set_behaviors/rotation_set_behavior.gd
Normal file
11
systems/bullets/set_behaviors/rotation_set_behavior.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue