Jump to content

Get array of objects colliding with a sprite with arcade physics


Segger
 Share

Recommended Posts

Help!  :(

 

Currently I'm trying to use a large invisible sprite object that is set to the same position of my space ship to check for collisions of nearby objects as a sort of scanner, rather than iterating through all my objects and checking their distance.

 

I would like to be able to run some code the first time the sprite collides and when it first stops colliding so that I can add and remove options from my flight menu when they're in and out of range.

 

Is there a simple way to get an array of the objects that a sprite is currently colliding with?

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...