0 votes

I am working with godot to create a DXBall clone as a part of my internship. After adding the powerups i am consistently having the problem of Area2D nodes that i have on my paddle to redirect the ball detecting the powerups. The area2D nodes should not be detecting the powerups since the powerups are on the 5th collision layer and the Area2D nodes are not set to monitor that layer.

Godot version 3.2.3-stable mono
in Engine by (12 points)

1 Answer

0 votes

Pay attention the physics engine detects collision in both directions:

A collision is dectected if:
1. The AreaNode2D mask bit and the Powerup layer bit matches.
2. Or the Powerup mask bit and the Area2D layer bit matches.

So, maybe you have to remove the powerup mask bit to ensure is not matching the Area2D layer.

by (74 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.