I’m trying to apply a force to bring an object (the egg) up. However, I don’t know why the egg rotates too much, so when it lands on a straight horizontal static wall, it continue to roll left or right. I want to apply force, so when the egg lands, it stop immediately (may bounce, but not roll). Here is how I apply the force:
[lua]egg:applyForce(0, -220, egg.x + egg.contentWidth / 2, egg.y + egg.contentHeight / 2);
– Or
egg:applyForce(0, -220, egg.contentWidth / 2, egg.contentHeight / 2);[/lua]
And please explains how the bounce works. If the egg has bounce = 0.3, the wall has bounce = 0.6, so what is the bounce value applys when the egg collides the wall? [import]uid: 103204 topic_id: 18808 reply_id: 318808[/import]