normalize(), ball get stuck

hello there,

I create game, sth like arkanoid,
the ball need to have constant speed,
so I use:
Code:

myBody.m_linearVelocity.Normalize();
myBody.m_linearVelocity.Multiply(mySpeed);
         


and it works quite nice. but...
.. it happens that ball get stuck between to blocks.
Image

the ball hit block numer number 2, change velocity and hit the block number 1
with
vX = -1;
vY = 0

so it will be bouncing between two blocks all the time 🙂

the blocks vars:

density: 0;
friction: .5;
restitution: 1;

the ball vars:

density: 1;
friction: .5;
restitution: .8;

but I suspect that the problem exists in normalize(),

do you have any idead?

cheers

greg

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