Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created March 1, 2025 19:26
Show Gist options
  • Save lamarmarshall/539598910c2c721c2d345372c0ddb677 to your computer and use it in GitHub Desktop.
Save lamarmarshall/539598910c2c721c2d345372c0ddb677 to your computer and use it in GitHub Desktop.
godot, projectile, bullet move
extends Area3D
var direction := Vector3.FORWARD
@export var speed := 30.0
func _physics_process(delta: float) -> void:
position += direction * speed * delta
func _on_timer_timeout() -> void:
queue_free()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment