Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Physics 2d Actions»Get Next Overlap Area 2d
Index
Navigation
Community Wiki

Get Next Overlap Area 2d

Iterate through a list of all colliders that fall within a rectangular area.The colliders iterated are sorted in order of increasing Z coordinate. No iteration will take place if there are no colliders within the area.

First Corner Game Object
First corner of the rectangle area using the game object position. Or use firstCornerPosition parameter.
First Corner Position
First Corner of the rectangle area as a world position. Or use FirstCornerGameObject parameter. If both define, will add firstCornerPosition to the FirstCornerGameObject position
Second Corner Game Object
Second corner of the rectangle area using the game object position. Or use secondCornerPosition parameter.
Second Corner Position
Second Corner rectangle area as a world position. Or use SecondCornerGameObject parameter. If both define, will add secondCornerPosition to the SecondCornerGameObject position
Min Depth
Only include objects with a Z coordinate (depth) greater than this value. leave to none for no effect
Max Depth
Only include objects with a Z coordinate (depth) less than this value. leave to none
Layer Mask
Pick only from these layers.
Invert Mask
Invert the mask, so you pick from all layers except those defined above.
Colliders Count
Store the number of colliders found for this overlap.
Store Next Collider
Store the next collider in a GameObject variable.
Loop Event
Event to send to get the next collider.
Finished Event
Event to send when there are no more colliders to iterate.

 

Tags:

Last modified on 3/14/2016 8:25 AM by User.

  • RSS Feed