Package org.jbox2d.collision.shapes

Examples of org.jbox2d.collision.shapes.CircleDef


    BodyDef dymBodyDef = new BodyDef();
    dymBodyDef.position = new Vec2(centerPoint.x /(float)worldScale, centerPoint.y /(float)worldScale);
    this.bodyDefB4CreationCallback(dymBodyDef);
    this.body = this.world.createBody(dymBodyDef);
   
    CircleDef circleDef = new CircleDef();
//    circleDef.radius = radius/(float)worldScale;
     //FIXME HACK so textured circles really connect to other bodies
//    circleDef.radius = radius/(float)worldScale - 2/(float)worldScale;
    circleDef.radius = radius/(float)worldScale;
    if (density != 0.0f){
View Full Code Here


    BodyDef dymBodyDef = new BodyDef();
    dymBodyDef.position = new Vec2(scaledPos.x, scaledPos.y);
    this.bodyDefB4CreationCallback(dymBodyDef);
    this.body = world.createBody(dymBodyDef);
   
    CircleDef circleDef = new CircleDef();
    circleDef.radius = radius/scale;
    if (density != 0.0f){
      circleDef.density     = density;
      circleDef.friction     = friction;
      circleDef.restitution   = restituion;
View Full Code Here

TOP

Related Classes of org.jbox2d.collision.shapes.CircleDef

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.