

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer

In cocos2d environment and box2D when an spherical object falls on a blunt slant obstacle, it moves really slowly, that's nauseating, if you have coded to not to have any interaction with world while object is in motion. Is there any way to get rid of this slow motion of object?

share|improve this question
Can you describe in more detail what is happening, and what your desired result is? A quick picture or sketch would be helpful as well. – AttackingHobo Jun 13 '11 at 17:26

It's possible that your slant really is not steep enough as Aku says, but it's more likely you flagged the object for fixed rotation, meaning it's not rolling down the slope, but rather sliding against friction. This makes it much slower, and if the slope is not steep enough, can halt it entirely.

share|improve this answer

Physics dictates that when you put a ball on a slant, it tends to roll. If it's a small slant, it rolls slowly. It's a matter of certain physics applied to certain conditions.

To get the effect you want, you have to either change the conditions...

  • for example, increase the slope to get it to roll off quicker

... or change the physics...

  • for example, add more friction (this could be conditional; only added if the slope is very small).
share|improve this answer

Your Answer


