Jump to content

How to change bounding box to bounding sphere, using ActionManager.OnIntersectionEnterTrigger?


Recommended Posts

I use onIntersectionEnterTrigger and onIntersectionExitTrigger to detect intersections in my project. As far as I understand for each mesh BabylonJS draws precise bounding box and both triggers use it. Everything went well untill I ran into round objects. So my first question is is it possible to change bounding box to bounding sphere and how to do it? and the second is does BabylonJS also draw bounding sphere for each mesh or I need to draw it by hand?

Link to comment
Share on other sites

  • 2 months later...

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.

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.


  • Recently Browsing   0 members

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