Jump to content

[SOLVED] Loaded Dudes do not collide with each other


AhmedMohamed
 Share

Recommended Posts

Hello,  need a little help here :)
I have a scene where I load a dude and clone many versions of him (about 20). I enable collisions on them,  on a tank in the scene, and also on the ground. collisions work as expected when I order the dudes to moveWithCollision until they hit the wall, and also when they move towards the tank. But : Dudes do not collide with each other, when they come close, they merge and become a single dude. I tried modifying the ellipsoid and ellipsoid offset , made them much more bigger and still the same effect. I tried also creating a bounding box , making it a child of dude , and moving it with collisions instead, but things didn't go so well also.

This is my demo (compressed) - tried to use the playground , loading assets from the github repo url but it didn't work.
https://github.com/AhmedFathiShaban/webgl/blob/master/Demo.rar

I also tried using this function  Temechon provided here to visualize the ellipsoid  , and whatever the size I make of the ellipsoid they finally merge with each other, I see the ellipsoids merge without the slightest objection :)

Pleasetell me the best practice in this situation, I am sure I am not the first to try to load multiple dudes with collision :D 

Thanks in advance :)

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