i'm trying react-three/cannon and my goal is to drop a "Cube" and a "GLTF model" from a position and let them land on a "Floor". it works well for the Cube (he touches the "Floor") but the "GLTF model" drops but never touch the "Floor"...
I think that there's an offset in the model or maybe some scale natively but i cant figure it out. enter image description here I have some code and a video to illustrate. Thank you all for your help guys !!! enter image description here
I think is because something like the image,
the bound box of the collider is bigger than your model.
to fix it, just set the property to
size/2
:I'm was also struggling with the same issue, and I checked the code of Pingpong demo, saw it's using
args props
in theuseBox
hook.The Readme didn't give much description about it, but I found this comment in the code