Jump to content

BoundingInfo and collision


kyptov
 Share

Recommended Posts

Why BuildingInfo not working? I want to collide with box on some distance.

http://www.babylonjs-playground.com/#IEDXC6

Here PG, I set a larger BoundingInfo and expecting camera to stop before box on some distance, but still camera stopping on box itself.

I can increase camera`s ellipsoid, but I don want, because in my scene different meshes will have different BoundingInfo.

Link to comment
Share on other sites

5 hours ago, Deltakosh said:

Yep correct, the bounding box is just used to define if we need co compute collisions.

I suggest adding invisible box which will have the checkCollision enabled and not use the actual mesh for that

Thank you. I found method _boundingInfo._checkCollision() and decided that it what I need. But deeper I found next checking in submeshes, where boundingInfo is not using.

I will use extra Mesh with visibility = 0.

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