get_colliding_bodies() doesnt return anything

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Scayze
:warning: Old Version Published before Godot 3 was released.

Hey everyone!
My Problem is that get_colliding_bodies() doenst seem to return anything, even, when i push the body around on the 2D world. Breakpoint 1 (marked in code below) is always hit, the second one never.

func _fixed_process(delta):
	var bodies = get_colliding_bodies()
	for i in bodies:                              #Breakpoint 1
		if(bodies[i].get_name() == "Player"):     #Breakpoint 2
			get_parent().get_node("Buttons").add_powerUp(self)
			self.queue_free()

fixed processing is obviously set to true.
Im kinda helpless. why does that happen? :expressionless:
-Manu

:bust_in_silhouette: Reply From: Fariskurd

tick in contact_monitor to detect the colliding bodies.

Thank you! I also had to change “Contact Reported” to a number higher than zero to make it work

Scayze | 2016-10-31 16:27