Created
March 1, 2025 19:26
-
-
Save lamarmarshall/539598910c2c721c2d345372c0ddb677 to your computer and use it in GitHub Desktop.
godot, projectile, bullet move
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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