I know that matter.js is a 2D implementation, and three.js focuses on 3D. However, I need these technologies to go together in the specific case. I also found out that it is possible to include a target renderer for matter.js (I know that matter.js is a 2D implementation, a