'Three.js - Is it possible to only change one part of a gltf object without replacing the whole object?

I have a car object and upon a click of the button, I would like for the wheels to change. The only way I had success so far is by creating a second file of the same car with the wheels I want and using scene.remove(car) and scene.add(car2) function, basically replacing the whole object. Is there a way to only replace the wheels without replacing the whole car?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source