Recommended Posts

Hi,

I am new to babylonjs (and physics libraries in general).

I have made a demo to illustrate my problem https://playground.babylonjs.com/#1XWKCR#1

I am trying to model a square grid that behaves like there is space in the middle, as in, if an object happens to be in the middle of it, the grid should be hanging onto it.

Following the example here https://playground.babylonjs.com/#66PS52, I have created 4 boxes, positioned 90deg to each other, added a PhysicsImpostor.BoxImpostor,  and parented them under a physicsRoot with PhysicsImpostor.NoImpostor.

The grid behaves like there is only one collider, right in the center of the grid.

Can someone please explain what is going on there?

Thank you,

vinz

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.