user1691392
user1691392

Reputation: 11

How I can remove a body elasticity? (andengine)

My character's body keeps bouncing.

body = PhysicsFactory.createCircleBody(mPhysicsWorld, this, BodyType.DynamicBody, PhysicsFactory.createFixtureDef(1, 1, 1));
mPhysicsWorld.registerPhysicsConnector(new PhysicsConnector(this, body, true, true));

How can I prevent this?

Upvotes: 1

Views: 286

Answers (1)

user874649
user874649

Reputation:

Replace with: PhysicsFactory.createFixtureDef(1, 0, 0), so that elasticity is 0.

Upvotes: 1

Related Questions