Better bullet traces and raycast for hitscan
This commit is contained in:
15
scenes/maps/csg_box_3d.gd
Normal file
15
scenes/maps/csg_box_3d.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends CSGBox3D
|
||||
|
||||
var health = 5
|
||||
|
||||
func take_damage():
|
||||
health -= 1
|
||||
# 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: float) -> void:
|
||||
if health < 1:
|
||||
queue_free()
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user