Hi,
- when a DYNAMIC body hits a STATIC one it suddenly bounce to the (it's my opinion) same height it come
- it happens for the horizontal and/or vertical hurts
- The sure thing is that the "big bounce" is made in ONLY one world.step();
- I want stress it, bodies sometimes overlap For example, sometimes the characters through walls or falls over the floor.
- and you can also see it SUDDENLY change its ANGLE
- oh and the gravity is (0,9.8);
here the info of my bodies:
see it for more information:
http://www.youtube.com/watch?v=vl0Nxk6iV9A
my opinion: I've the strange feeling this problem is paired with the strane overlapping, and JBox2D try to put my bodies to a safe distance to not overlap, but it is of 6 or 7 meters so it make this weirdness.
I really don't get what else could be!
- when a DYNAMIC body hits a STATIC one it suddenly bounce to the (it's my opinion) same height it come
- it happens for the horizontal and/or vertical hurts
- The sure thing is that the "big bounce" is made in ONLY one world.step();
- I want stress it, bodies sometimes overlap For example, sometimes the characters through walls or falls over the floor.
- and you can also see it SUDDENLY change its ANGLE
- oh and the gravity is (0,9.8);
here the info of my bodies:
Code:
FixtureDef fd = new FixtureDef();
shape.setAsBox(0.15f, 0.35f);
fd.shape = shape;
fd.density = 1000;
Fixture f = body.createFixture(fd);
f.setFriction(5f);
f.setDensity(1000);
f.setRestitution(1f);
MassData md = new MassData();
shape.computeMass(md, fd.density);
body.setMassData(md);
body.setLinearDamping(6f);
shape.setAsBox(0.15f, 0.35f);
fd.shape = shape;
fd.density = 1000;
Fixture f = body.createFixture(fd);
f.setFriction(5f);
f.setDensity(1000);
f.setRestitution(1f);
MassData md = new MassData();
shape.computeMass(md, fd.density);
body.setMassData(md);
body.setLinearDamping(6f);
see it for more information:
http://www.youtube.com/watch?v=vl0Nxk6iV9A
my opinion: I've the strange feeling this problem is paired with the strane overlapping, and JBox2D try to put my bodies to a safe distance to not overlap, but it is of 6 or 7 meters so it make this weirdness.
I really don't get what else could be!