Replies: 2 comments
-
Apparently it is needed a rigid-body for colliders to work. Is it intended? I didn't find any information about that in docs. |
Beta Was this translation helpful? Give feedback.
-
By default collision-detection is disabled between two colliders if none of them is attached to a dynamic rigid-body. You can enable collision-detection between all colliders by setting the active collision types to Also, please note that non-sensor colliders generate contact events instead of intersection events. So you may want to read |
Beta Was this translation helpful? Give feedback.
-
Hi! Thanks for your work.
I just started using bevy_rapier and I am struggling to make colliders work. In the example below, I have the player and the enemy spawn functions, they both have their colliders, without rigid-bodies. Below these I show the function that handle the intersection between these 2 elements.
I already checked and even when the position is basically the same I can't get IntersectionEvent to work. It's like there was never any coliders to begin with... Could you please give me some light on what I am doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions