How to maintain speed of an object when it collide with another moving object?

hello, i want to ask…

in my game i have bunch of balls bouncing around using addforce. but when the ball collide with another ball , one of the ball slowed down… i want to maintain the ball speed even it collide with another moving object.

how to do that?
thanks…

set velocity vector magnitude to some fixed value every time right after your objects collide with each other, also make sure there is no drag to slow them down.

var rb = GetComponent<Rigidbody>();
float constantSpeed = 5;
rb.velocity = rb.velocity.normalized * constantSpeed;

@misher it works! thanks for helping me…