open-strike-2/scenes/weapon/guns/ak/bullet.gd

19 lines
393 B
GDScript3
Raw Normal View History

extends Node3D
const SPEED = 715
@onready var mesh = $Object_10
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
position += transform.basis * Vector3(0, 0, SPEED) * delta
func _on_timer_timeout():
queue_free()