Package org.jbox2d.dynamics

Examples of org.jbox2d.dynamics.BodyDef


    float worldWidth = u.x - l.x;
    float worldHeight = u.y - l.y;
   
    float offset = 1f; //kleiner als world machen
   
    BodyDef dymBodyDef = new BodyDef();
    dymBodyDef.position = new Vec2(0 , 0 );
//    dymBodyDef.position = new Vec2(worldWidth*0.5f , worldHeight*0.5f);
    Body theBody = world.createBody(dymBodyDef);

    EdgeChainDef myEdges = new EdgeChainDef();
View Full Code Here

TOP

Related Classes of org.jbox2d.dynamics.BodyDef

Copyright © 2018 www.massapicom. 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.