-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OBB isn't centered (includes proposed fix) #5506
Comments
Can try master? there was some recent fixes |
updated glitch example to include the master - same issue |
Feel free to open a PR. Thanks! |
made a fork and added the change, but then I realized that when the entity is itself a child of another entity, the issue persists (I updated the glitch example so now neither solution works) not sure how to fix it 🤷, but personally I can just modify my personal use-case so the child primitives are each obb-colliders instead of the parent entity |
Definitely obb-collider doesn't work at the moment with shifted children with respect to the parent |
Using obb-collider for entities with child entities creates a collider that isn't centered, causing an offset
I looked into the obb-collider.js and was able to create a fix by modifying the
tick
function to include the boundingBox's center. I made a simple build and you can see it in action in the glitch url aboveThe text was updated successfully, but these errors were encountered: