I guess that is a red herring.

I think people must be using JBox2d.

Here's a quick test I wrote in case it helps anyone:


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Vec2 gravity = new Vec2(0, -10);
World world = new World(gravity, true);

world.setContactListener(new My_Listener());

BodyDef bodyDef = new BodyDef();

bodyDef.type = BodyType.DYNAMIC;
bodyDef.position = new Vec2(0, 110);
bodyDef.linearVelocity = new Vec2(100, 0);

Body body = world.createBody(bodyDef);

PolygonShape box = new PolygonShape();
box.setAsBox(0.5f, 0.5f);

FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = box;
fixtureDef.density = 1.0f;
fixtureDef.friction = 0.3f;

body.createFixture(fixtureDef);
 Vec2 pos1 = body.getPosition();
 Log.d("test", "pos1: " + pos1.x + "," + pos1.y);

world.step((float) 1, 8, 1);

Vec2 pos2 = body.getPosition();
 Log.d("test", "pos2: " + pos2.x + "," + pos2.y);

}

On Thursday, February 21, 2013 2:26:01 PM UTC-6, bob wrote:
>
> I heard rumors of people using Box2d on Android.
>
> I searched and came across this project:
>
> http://code.google.com/p/androidbox2d/
>
> However, it appears to be in disarray.  Does anyone know if this is what 
> people are really using to do Box2d on Android?
>
> Also, it has this curious outstanding issue of almost 4 years:
>
> *What steps will reproduce the problem?*
> 1. Open androidbox2d wiki
> 2. Search for instructions.
> 3. Deal with disappointment and dismay. No instructions will be found.
>
> *What is the expected output? What do you see instead?*
> Expected instructions. Instead, I see nothing.
>
> *What version of the product are you using? On what operating system?*
> Latest.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to