The name being half-remembered here is something along the lines of "Rubix", and the description points to a robot-building action RPG rather than a straight fighting game.
The genre you are describing, free roaming between encounters with modular mechs you assemble yourself, is best known through Custom Robo, where you build a robot from parts and battle in enclosed arenas. Armored Core covers similar ground with a heavier simulation bent. Either could be what you are thinking of.
If neither matches, the most useful detail to pin down is the platform you played it on and whether the parts were collected as loot or bought in a shop. That usually narrows a fuzzy memory down to a specific title quickly.