Jump to content

Mesh and Ball collision


ian
 Share

Recommended Posts

I have qauestion?

Is possible that it is a physics collision problem (between sphre - mesh colison connection).
Ball falls throuh floor or edge every time on the same places.
I mark this places with submesh-materials.

And I try include scene.getPhysicsEngine().setTimeStep(1 / 100); and physics works same (on same specific places ball falls through mesh).

I'm still looking for a reason why happend this.

(cannon physics)
 

Link to comment
Share on other sites

Hi again.  This question has been asked many times on the forum.  Keep your mesh a bit big.  No tiny mesh.   :)  It would help if you provided a playground.

http://www.babylonjs-playground.com/#IGM3H#1

A little modified demo from the Physics Engine docs.

Good luck!   Need a "safety box"?  http://www.babylonjs-playground.com/#1PEY4O#0

PS:  A web search for "ball through floor" or "ball through wall" will show that this is a common problem for many physics engines.

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...