How to control the speed of body movement?

I have a player character and I would like him to fire bullets, one each second.

It's a top down view, no gravity.

I've been doing it with SetLinearVelocity() and ApplyLinearImpulse() and the object moves, but I can't control the speed.

How can I control the speed of the bullets? I also need to control the direction of the bullets (360 degrees).
Why does SetLinearVelocity not work? Are joints messing it up or something?
I think I got it, I found a solution on this topic: viewtopic.php?f=3&t=5839

Here is my code:

Code:
   // This determines the speed variance
   float speed = .3f;

   // targetPosition is actually touch point
   b2Vec2 targetInWorld = b2Vec2(targetPosition.x, targetPosition.y);   

   // This determines the actual direction of the bullet, from player position to touch point
   b2Vec2 direction = b2Vec2(targetInWorld.x - bullet.Sprite.position.x,
                       targetInWorld.y - bullet.Sprite.position.y);

   // I don't understand this, but without it, speed is not constant in all directions
   direction.Normalize();

   // This moves the body, and the key part is multiplication
   // of 'speed' variable with direction. This is what I was missing.
   body->SetLinearVelocity( speed * direction );

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