-
I have the same use case as this question, basically an imported .glb model with a lot of meshes. However, I'm wondering if there's a way to add these objects directly to the World instantiated in the
Basically just trying to make a box object in the Cannon World based off the bounding boxes of each object in the scene. With this code, I run into an error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
why though? better make a component, you dont need a visual representation, take a look at the borders component for instance: https://codesandbox.io/s/ball-pit-1-mvkqs?file=/src/App.js:714-1374 |
Beta Was this translation helpful? Give feedback.
why though? better make a component, you dont need a visual representation, take a look at the borders component for instance: https://codesandbox.io/s/ball-pit-1-mvkqs?file=/src/App.js:714-1374