extends Node2D # Called when the node enters the scene tree for the first time. func _ready(): get_child(0).calcFinalVelocity(0) get_child(1).calcFinalVelocity(0) get_child(2).calcFinalVelocity(0) var allBullets = get_tree().get_nodes_in_group("player_bullet") for b in allBullets: get_child(0).add_collision_exception_with(b) get_child(1).add_collision_exception_with(b) get_child(2).add_collision_exception_with(b) # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass