|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
MmTtDeveloper |
For some reason, the body_entered signal on my rigidbody dosen’t seem to dect anything no matter what. I turned on contact reporting and set reported contacts to 4. Why dosen’t it work?
do the collision_mask of this rigidbody match the collision_layers of the other rigid_body/static_body/kinetic_body nodes which enter?
wombatstampede | 2019-05-09 15:50
Yes, they match.
MmTtDeveloper | 2019-05-11 13:41
|
|
|
|
Reply From: |
Othman2019 |
It might be your collision2d, try using a print statement to see if it outputs anything when you collide with an object. If you tested it and it’s working then try to give the object a group name, then make the selection on the group rather than an object name.
No it prints nothing even though I put a print statement.
MmTtDeveloper | 2019-05-09 11:09
Then it must be an issue with your collision2d maybe share an image of the scene or share the project file, so I can take a look at what’s going wrong.
Othman2019 | 2019-05-10 04:53
|
|
|
|
Reply From: |
MmTtDeveloper |
I fixed it by using an Area node instead of a RigidBody because I actually didn’t need most of the features a RigidBody provides and collision detection works now!