Jump to content

Objects sometimes going through plane Physics/Collision


Metalx1000
 Share

Recommended Posts

**Solved!

**cannon.js does not like 0 height object. I suggest you to use a box with scaling.y = 0.01 instead of a plane for your ground

**Code has been updated

Does anyone have a clone why these meshes are sometime falling through the ground plane and other times they are not?

Do is have to do with my "setPhysicsState" settings or something else?

http://filmsbykris.com/scripts/Game-Basics/BabylonJS/importing/clone_1.html

 

Thanks in advance for any help.

Link to comment
Share on other sites

cannon.js does not like 0 height object. I suggest you to use a box with scaling.y = 0.01 instead of a plane for your ground

Thank you Deltakosh, that was exactly it.

 

I really should have thought of that.  I think in my head I was picturing a box with depth to it surounding the plane when I applied the  "BoxImpostor".

Thank you so much for your quick response.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...