Is there something like getGameObjectsWithinShape

Good day,

I am still pretty new to Phaser :slight_smile:
Is there a Method similar to layer.getTilesWithinShape(shape); but just for gameObjects?
something like scene.getGameObjectsWithinShape(shape)

i was just wondering and didn’t find anything close.

i want to check if any GameObject is Touching a Line Between the Player and the Enemy.

Thank you :smiley:

There isn’t. You can convert game objects to rectangles and use the Intersects methods. See

1 Like