Skip to content

Navigation Menu

Sign in
Sign up

Why do I use rigid bodies created with Cylinder and Sphere, where Cylinder does not participate in collisions, and rigid bodies created with two Spheres are normal #196

Unanswered
3261564019 asked this question in Q&A
Discussion options

a.mp4
b.mp4
You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

It's hard to say for sure without seeing some code / a codesandbox, but one possible explanation is you're using shapes that don't support collision with each other.

If you're using a Trimesh shape for your environment, your issue would be using unsupported collision pairs. In cannon Cylinder and Trimesh shapes can't collide with each other at present - the collision logic for that pair hasn't been implemented.

You can find a table showing the supported collision shapes here: https://github.com/schteppe/cannon.js

You must be logged in to vote
3 replies
Comment options

I've added that table to the docs website now: #197

Comment options

Comment options

Very useful Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /