Change direct force?

Hello, Sorry my English. I want to ask about the force. Two gameobjects are collisions and they are create 2 forces in 2 object with their direction. So can i change the direction force? Example: i don’t use Y direction but i want X,Z direction.

Rigidbody have flags to freeze an axe or several, if that’s what you mean. See Unity - Manual: Rigidbody component reference, at Constraints.