added pipe rifle animation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class_name DamageParticle
|
||||
extends Sprite3D
|
||||
|
||||
@onready var label: Label = $SubViewport/Label
|
||||
@export var label: Label
|
||||
var time_alive: float = 0.0
|
||||
var movement_speed: float = 1.0
|
||||
var movement_vector: Vector3
|
||||
@@ -13,6 +13,7 @@ func _ready() -> void:
|
||||
var phi: float = randf_range(0, 2 * PI)
|
||||
var vector: Vector3 = Vector3(sqrt(1 - pow(z, 2)) * cos(phi), z, sqrt(1 - pow(z, 2)) * sin(phi))
|
||||
movement_vector = vector.normalized()
|
||||
visible = true
|
||||
|
||||
|
||||
func set_number(num: int) -> void:
|
||||
|
||||
Reference in New Issue
Block a user