Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | sumguy05 |
I have a RigidBody2d that will detect collision if it falls upon a player but not if a player runs into it even though it acts upon the player’s force. What I mean is a player will run into it and be impeded by the falling RigidBody2d. I connected a signal and use the below code.
func _on_snowflake_body_entered(body):
if body.get_name() == "player":
queue_free()
The snowflakes disappear when they fall on the player just not when the player runs into them.