Object not bouncing back at low velocities

Topics: Developer Forum
Aug 27, 2013 at 3:16 AM
I have a circle object (of radius 0.5m) colliding with a rectangle object (of dimensions 40m wide and 1m high.)
The gravity vector of the world is set to zero.

The issue I am seeing is that if I set the velocity of circle object to a less value the the object does not bounce back after colliding with the rectangle object.
Instead it just slides along the rectangle object.

Unless I set the velocity of circle object to Vector(3,-3) the object does not bounce back.

Can anybody tell me what I am missing.

The attributes that I am setting for circle object are as following:
        m_body = BodyFactory.CreateCircle(Environment.GetWorld(),Environment.GetMetresFromPixel(radius), 0.5f);
        m_body.BodyType = BodyType.Dynamic;
        m_body.Position = new Vector2(Environment.GetMetresFromPixel(xPosition + radius), Environment.GetMetresFromPixel(yPosition + radius));
        velocity = new Vector2(1, -1.0f);
        velocity *= 3.0f;
        m_body.ApplyForce(velocity);
        m_body.Mass = 1;
        m_body.Restitution = 1.0f;
        m_body.Inertia = 1.0f;

The attributes that I am setting for rectangle object are as following:
        m_body = BodyFactory.CreateRectangle(Environment.GetWorld(), 
                                             Environment.GetMetresFromPixel(Width), 
                                             Environment.GetMetresFromPixel(Height), 
                                             1.0f);
        m_body.Rotation = rotation;
        m_body.BodyType = BodyType.Static;
        m_body.Restitution = 1.0f;
        m_body.Mass = 1000;
        m_body.Friction = 0;
        m_body.LinearDamping = 0.0f;