Collision and "attachment points"

Well first, welcome to the Babylon Family! It’s genuinely great to have you here.

Is there anything more you can tell us about the types of objects that people will be “connecting.”

There are essentially 2 different questions here:

  1. Can you ensure that objects that are added to a scene do not intersect one another? This is probably most easily done by using the bounding box capabilities in Babylon.js.
    Here’s some info to get you started on that: Drawing Bounding Boxes | Babylon.js Documentation

  2. Attachment points is a much more complicated question to answer without more knowledge about the types of objects that will be added to the scene. If it were me I would probably think about this in the design and creation of the 3D objects. If you can design them in a way where there specific attachment points in the model itself, that would probably be the easiest place to start. Perhaps a parented invisible joint or object that you could attach other objects to? This is the route I’d probably start to explore first.

Now luckily, @Krishna_Kishore just posted an incredible demo of a modular sofa system that looks like it might answer both of the issues you’re inquiring about.

@Krishna_Kishore, would you be willing to share some techniques you used here to help @Toni_Bruno?

3 Likes