本文整理汇总了Java中org.jbox2d.pooling.normal.DefaultWorldPool类的典型用法代码示例。如果您正苦于以下问题:Java DefaultWorldPool类的具体用法?Java DefaultWorldPool怎么用?Java DefaultWorldPool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultWorldPool类属于org.jbox2d.pooling.normal包,在下文中一共展示了DefaultWorldPool类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testCircleContactStack
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
@Test
public void testCircleContactStack() {
System.out.println("A");
DefaultWorldPool thePool = new DefaultWorldPool(10, 10);
System.out.println("B");
IDynamicStack<Contact> theCircleStack = thePool.getCircleContactStack();
System.out.println("C");
Contact theContact = theCircleStack.pop();
System.out.println("D");
Assert.assertTrue(theContact instanceof CircleContact);
System.out.println("E");
}
示例2: testLinkDefaultWorld
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
@Test
public void testLinkDefaultWorld() {
DefaultWorldPool thePool = new DefaultWorldPool(1, 1);
}
示例3: World
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
public World(Vec2 gravity, boolean doSleep){
this(gravity, doSleep,
new DefaultWorldPool(WORLD_POOL_SIZE, WORLD_POOL_CONTAINER_SIZE));
}
示例4: raycast
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
/**
* @deprecated please use {@link #raycast(RayCastOutput, RayCastInput, IWorldPool)} for better
* performance
* @param output
* @param input
* @return
*/
public final boolean raycast(final RayCastOutput output, final RayCastInput input) {
return raycast(output, input, new DefaultWorldPool(4, 4));
}
示例5: World
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
/**
* Construct a world object.
*
* @param gravity the world gravity vector.
*/
public World(Vec2 gravity) {
this(gravity, new DefaultWorldPool(WORLD_POOL_SIZE, WORLD_POOL_CONTAINER_SIZE));
}
示例6: World
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
/**
* Construct a world object.
*
* @param gravity the world gravity vector.
*/
public World(Vector2 gravity) {
this(gravity, new DefaultWorldPool(WORLD_POOL_SIZE, WORLD_POOL_CONTAINER_SIZE));
}
示例7: raycast
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
/**
* @deprecated please use
* {@link #raycast(RayCastOutput, RayCastInput, IWorldPool)} for
* better performance
* @param output
* @param input
* @return
*/
public final boolean raycast(final RayCastOutput output,
final RayCastInput input) {
return raycast(output, input, new DefaultWorldPool(4, 4));
}
示例8: ParticleWorld
import org.jbox2d.pooling.normal.DefaultWorldPool; //导入依赖的package包/类
/**
* Construct a world object.
*
* @param gravity the world gravity vector.
*/
public ParticleWorld(Vec2 gravity) {
super(gravity, new DefaultWorldPool(WORLD_POOL_SIZE, WORLD_POOL_CONTAINER_SIZE));
}