I am developing a game where you are on side scroll on screen middle (player) and enemyes appears from left or right continusly.
I create a enemy, set a Linearvelocity to right (or left) on this way: getBody.setLinearVelocity(v*this.getDireccion(), 0);
Then, when the enemy collides with another enemy or player, sometimes change direction (he slides back) or get more slow or fast. I need that always have the same LinearVelocity, and if this enemy is colliding with a player or another monster, dont stop, dont slow, dont fast... same velocity and direction.
Anybody can help me with this? Sorry my english.