Package org.jbox2d.pooling.normal
Class DefaultWorldPool
java.lang.Object
org.jbox2d.pooling.normal.DefaultWorldPool
- All Implemented Interfaces:
WorldPool
Provides object pooling for all objects used in the engine. Objects retrieved
from here should only be used temporarily, and then pushed back (except *
arrays).
- Author:
- Daniel Murphy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DynamicStack<Contact>final Collisionfinal Distancefinal float[]getFloatArray(int argLength) final int[]getIntArray(int argLength) final DynamicStack<Contact>final DynamicStack<Contact>final TimeOfImpactfinal Vec2[]getVec2Array(int argLength) final AABBpopAABB()final AABB[]popAABB(int argNum) final Mat22popMat22()final Mat22[]popMat22(int argNum) final Mat33popMat33()final RotpopRot()final Vec2popVec2()final Vec2[]popVec2(int argNum) final Vec3popVec3()final Vec3[]popVec3(int argNum) final voidpushAABB(int argNum) final voidpushMat22(int argNum) final voidpushMat33(int argNum) final voidpushRot(int num) final voidpushVec2(int argNum) final voidpushVec3(int argNum)
-
Constructor Details
-
DefaultWorldPool
public DefaultWorldPool(int argSize, int argContainerSize)
-
-
Method Details
-
getPolyContactStack
- Specified by:
getPolyContactStackin interfaceWorldPool
-
getCircleContactStack
- Specified by:
getCircleContactStackin interfaceWorldPool
-
getPolyCircleContactStack
- Specified by:
getPolyCircleContactStackin interfaceWorldPool
-
getEdgeCircleContactStack
- Specified by:
getEdgeCircleContactStackin interfaceWorldPool
-
getEdgePolyContactStack
- Specified by:
getEdgePolyContactStackin interfaceWorldPool
-
getChainCircleContactStack
- Specified by:
getChainCircleContactStackin interfaceWorldPool
-
getChainPolyContactStack
- Specified by:
getChainPolyContactStackin interfaceWorldPool
-
popVec2
-
popVec2
-
pushVec2
public final void pushVec2(int argNum) -
popVec3
-
popVec3
-
pushVec3
public final void pushVec3(int argNum) -
popMat22
-
popMat22
-
pushMat22
public final void pushMat22(int argNum) -
popMat33
-
pushMat33
public final void pushMat33(int argNum) -
popAABB
-
popAABB
-
pushAABB
public final void pushAABB(int argNum) -
popRot
-
pushRot
public final void pushRot(int num) -
getCollision
- Specified by:
getCollisionin interfaceWorldPool
-
getTimeOfImpact
- Specified by:
getTimeOfImpactin interfaceWorldPool
-
getDistance
- Specified by:
getDistancein interfaceWorldPool
-
getFloatArray
public final float[] getFloatArray(int argLength) - Specified by:
getFloatArrayin interfaceWorldPool
-
getIntArray
public final int[] getIntArray(int argLength) - Specified by:
getIntArrayin interfaceWorldPool
-
getVec2Array
- Specified by:
getVec2Arrayin interfaceWorldPool
-