Package org.jbox2d.collision.broadphase

Examples of org.jbox2d.collision.broadphase.BroadPhaseJNI.createProxy()


    Integer b = new Integer(1);
    AABB aabb = new AABB();
    aabb.lowerBound.x = -10;
    aabb.lowerBound.y = -10;

    int proxy1 = tree.createProxy(aabb, a);
    System.out.println("proxy1: " + proxy1);
    assertNotNull(tree.getFatAABB(proxy1));
    System.out.println("fat aabb: " + tree.getFatAABB(proxy1));
    assertTrue(tree.getFatAABB(proxy1).contains(aabb));
View Full Code Here


    aabb.upperBound.x = -2;
    aabb.upperBound.y = -2;


    int proxy2 = tree.createProxy(aabb, b);
    assertNotNull(tree.getFatAABB(proxy2));
    assertTrue(tree.getFatAABB(proxy2).contains(aabb));
    assertNotNull(tree.getUserData(proxy2));
    assertSame(b, tree.getUserData(proxy2));
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.