Hi,
I'm making an air hockey like game. The issue I'm having is that the puck sticks to the walls if it moves slowly. In box2d there is a setting b2_velocityThreshold. The default appears to be 1, so any object moving slower than 1 m/s will collide inelastically, regardless of restitution.
So my question is, can I set b2_velocityThreshold in Gideros somewhere?
Thanks for any reply!
Jeroen
Comments
You can read more on response about this:
http://www.giderosmobile.com/forum/discussion/2152/access-to-b2settings.h-/p1
But are you sure, that your walls and puck does not have any friction set? Just checking.
I'm aware of the sticky wall issue
But we will think on the issue and how it can be helped
Yep, the puck and walls have friction but just to be sure I set those to 0 without effect.
I worked around it by scaling up the game (using b2.setScale), so that 1 m/s becomes a very low speed. I can imagine that this would not be a valid workaround for all scenarios though.
Thanks again for your prompt reply.