Package zombie
Class CollisionManager
java.lang.Object
zombie.CollisionManager
public class CollisionManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CollisionManager.Contact
class
CollisionManager.PolygonCollisionResult
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
ContactMap
static CollisionManager
instance
-
Constructor Summary
Constructors Constructor Description CollisionManager()
-
Method Summary
Modifier and Type Method Description void
AddContact(IsoMovingObject a, IsoMovingObject b)
void
initUpdate()
float
IntervalDistance(float minA, float maxA, float minB, float maxB)
CollisionManager.PolygonCollisionResult
PolygonCollision(Vector2 velocity)
void
ResolveContacts()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ContactMap
public java.util.ArrayList ContactMap -
instance
-
-
Constructor Details
-
CollisionManager
public CollisionManager()
-
-
Method Details
-
PolygonCollision
-
IntervalDistance
public float IntervalDistance(float minA, float maxA, float minB, float maxB) -
initUpdate
public void initUpdate() -
AddContact
-
ResolveContacts
public void ResolveContacts()
-