-
Notifications
You must be signed in to change notification settings - Fork 138
Objects fall through a simple collada plane/floor #9
Comments
Hi @7ammer — there's some more detail about this in c-frame/aframe-extras#41. tl;dr — By default, your Collada model is turned into a CANNON.Trimesh shape. These are only partially supported by Cannon.js, have poor performance, and can only collide with Sphere and Plane shapes, as described in Cannon.js collision matrix. In general cases, these are the options:
In your particular case, since this is just a very basic plane, I would normally use option (1). <a-entity static-body="shape: box" collada-model="#ground"></a-entity> Unfortunately there is a bug with fitting a box to an infinitely thin object, so that won't work right now. I'll try to fix that. In the meantime, you'll need to use option (2) instead: <a-entity collada-model="#ground"></a-entity>
<a-plane static-body visible="false" height="100" width="100" rotation="-90 0 0"></a-plane> |
Ah, I see! Thanks for letting me know. Is .obj support in the same boat as .dae or is the support slightly better? I tried Cheers |
I'd have expected OBJ or DAE to behave the same way, it should just depend on the geometry. I'm not sure why the |
Bug related to infinitely-thin objects is now filed separately here: #45 I'm going to try to put together some info on how to use model(s) as your base scene for physics, soon, but that will require some preparation of the model in Blender... will never be as simple as dropping in an arbitrary model and putting Closing this issue in the meantime. |
I've noticed an issue where objects are falling through a simple Collada based floor/plane.
Here is the jsfiddle example:
https://jsfiddle.net/9z9e1jtk/
The text was updated successfully, but these errors were encountered: