So I’ve been working on making an amazing collision detection boilerplate code with three js. I noticed that when you traverse a gltf mesh( gltf.scene.traverse((node)) {}
)
you actually find that the node has a geometry.box3() element. So I can successfully access that box three and get its parent elements so that I can get its world position, but for some reason I cannot make collision detection with it work. I added a helper, but the scale and the things in the scene just seem wrong to me.
Sorry for the long message. I haven’t made a post in a while. This is the biggest hiccup I’ve had in a while. Thanks!
Appreciate the help very much…feel free to check out my github and my starwars game(in it I made collision detection with raycasters which is kinda terrible)
Thanks again everyone! - Jackson U.