-
Hi, Is there a way to create shapes to detect other shapes, without being a part of the physics simulation? Something like the Area2D Node in Godot? Any advice/help would be greatly appreciated. God bless, |
Beta Was this translation helpful? Give feedback.
Answered by
wnbittle
Mar 23, 2024
Replies: 1 comment 1 reply
-
Yes. There's a few ways to do this. The first is to use the The second way is to create a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
accmltr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. There's a few ways to do this.
The first is to use the
detect
methods of theWorld
class. These methods will accept anAABB
orConvex
.The second way is to create a
Body
and as you add theFixture
s, set each of them to a sensor usingsetSensor
. Then you can get collision notifications from the world listeners.