public interface CollisionGridAPI
Modifier and Type | Method and Description |
---|---|
void |
addObject(java.lang.Object object,
Vector2f loc,
float objWidth,
float objHeight)
Adds the object to every bucket that the area overlaps.
|
java.util.Iterator<java.lang.Object> |
getCheckIterator(Vector2f loc,
float checkWidth,
float checkHeight)
Returns an iterator for all the objects in this grid that are in the specified area.
|
void |
removeObject(java.lang.Object object,
Vector2f loc,
float objWidth,
float objHeight)
Removes the object from every bucket that the area overlaps.
|
void addObject(java.lang.Object object, Vector2f loc, float objWidth, float objHeight)
object
- loc
- objWidth
- objHeight
- void removeObject(java.lang.Object object, Vector2f loc, float objWidth, float objHeight)
object
- loc
- objWidth
- objHeight
- java.util.Iterator<java.lang.Object> getCheckIterator(Vector2f loc, float checkWidth, float checkHeight)
loc
- checkWidth
- checkHeight
- Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.