-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add Box / Trimesh collisions #21
Comments
Hello @arpu can you provide a more detailed explanation of what's the actual situation vs. how would you like it to work? |
hi, @codynova pointed me on Twitter to this cannon table in this Table a Trimesh can only be collade with a Sphere and a Plane, in some Situations it would be good to have a Box shape collide with the Trimesh |
right now i am not sure if this needs much more work or its simple doable |
it's never simply doable my friend |
still looking at this for https://vrland.io/dev/in if you grab the boxes and hit it again the house (trimesh) no physics the ball just works fine maybe i should include a sphere inside the box? maybe this is the best and most performance optimized way? |
Any progress on this. It would be great for Car games, Snowboarding and Skiing. |
It seems like, in the mean time, you will have to recreate your model with planes and boxes. I'd be interested in a more technical explanation as to why this is impossible. |
For the people who really want to use trimeshes, I made a function that converts a trimesh to a body with convex polyhedron shapes added to it. However, it is probably very slow, (in my demo I got 44 fps while a few shapes were moving)
not the best written, but does the job :) |
Have there been any updates on this? It would be super useful to be able to detect collisions between vehicles made of boxes and the ground made of trimeshes or vice versa. |
Of course I just found out trimesh/box model collisions don't work, see: pmndrs/cannon-es#21
for Box collide Trimesh i use now this:
|
Thanks for having a this maintained fork! |
Hi,
would be nice to get this Box Shape collide with a Trimesh
The text was updated successfully, but these errors were encountered: