Jump to content

cylindrical impostor should be collidable from inside


jellix
 Share

Recommended Posts

Hi,

a collision with a cylindrical imposter is only triggered when my "bullet" hits the outer surface of the impostor.

But my bullet should collide on the inside of the cylinder.

I've used "flipFaces()" with the mesh that the impostor is used on without an effect.

... is my question clear so far?

Link to comment
Share on other sites

Hi Jelix

You can get that with a CannonJS meshImpostor, but might not be possible with a cylinderImpostor.

http://www.babylonjs-playground.com/#1YOCO9#34

AND, only spheres collide with CannonJS meshImpostors.

Others may comment and have better ideas.

Notice the setPhysicsState on a setEnabled(false) cylinder?  Notice that when you enable 'cyl', you can't see it... thru the wireframe cyl2 (even though the wireframe cyl2 is scaled larger)?

It's all part of the magic... of BJS :)

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