Objects sticking to walls

Sorry if this has been brought up before but I'm having issues with circles sticking to walls as illustrated in the example below: (i.e. I'm looking to get the circle to bounce aroud continuously at the correct angle)

http://www.inboxwork.co.uk/box2d/PhysTest.html

I've tried tweaking various parameters for both the wall and the circle including restitution but haven't found a solution yet.

The walls are default TestBed and the circle is made using:

Code:
var cd:b2CircleDef = new b2CircleDef();
cd.radius = 10 / m_physScale;
cd.density = 1;
cd.restitution = 1;
bd = new b2BodyDef();
bd.position.Set(250/m_physScale, 300/m_physScale );
body = m_world.CreateBody(bd);
body.CreateShape(cd);
body.SetMassFromShapes();
body.ApplyImpulse(new b2Vec2(1, 0.3), body.GetWorldCenter());


Can anyone help?

Thanks
Dave
Thank you for the demo. It's much easier to determine the problem when it's clear what the symptoms are. 🙂

From Box2D/Common/b2Settings.as, line 59:
Code:
   /// A velocity threshold for elastic collisions. Any collision with a relative linear
   /// velocity below this threshold will be treated as inelastic.
   static public const b2_velocityThreshold:Number = 1.0;      // 1 m/s
Either change the scale of everything that you put into Box2D so that Box2D thinks your objects are traveling faster, or change this constant. (carefully)
Great, thanks for your help, much appreciated,

Dave

Original thread: https://box2d.org/forum/viewtopic.php?t=1405