Bullet Behavior with bounce without loosing speed when bounce with another objects.

I created a game with 4 objects, and i want to add bullet behavior to them. They already have an AddForce but when they collide, especially when they front colide (180°), they lose speed, and i don’t want that. I want to create 4 objects with constant speed even when bounce with other objects or walls. The objects must never slow down.

#pragma strict


function Start () {
	rigidbody2D.AddForce (new Vector2 (Random.Range(-100, 100), Random.Range(-100, 100)));
}

You will need to put a script on the bullet itself. In FixedUpdate(), add the line:

  rigidbody2D.velocity = rigidbody2D.velocity.normalized * someSpeed;

…where ‘someSpeed’ is the speed you want for your bullet.