1

I'm trying to identify when a collision occurs between two meshes I've created. The problem is that one of the meshes is nested into a bunch of THREE.Object3D objects, so the collision isn't being detected. When I add another object directly to the scene ( scene.add(myObject) ), the collisions between that object and the other object at the top of the scene are recognized. However, there is still no collision detected between the mesh inside of the THREE.Object3D.

Is there a way to have Physijs detect collisions between meshes which are a direct child of the scene object, and meshes which are a child of a THREE.Object3D, which is a parent to the child?

Thanks!

mjkaufer
  • 4,047
  • 5
  • 27
  • 55
  • Did you figure this out? – Carpetfizz Jan 14 '16 at 02:14
  • I ended up writing a basic collision detection engine which identifies collisions between lines and planes. I'm not sure how useful this would be for average applications, though. If you'd like to see, let me know. – mjkaufer Jan 14 '16 at 05:27
  • Thanks for responding! I actually solved your initial problem by making sure that the parents of all the children are Physijs objects. https://github.com/chandlerprall/Physijs/wiki/Compound-Shapes – Carpetfizz Jan 14 '16 at 05:48
  • 1
    Funny - I tried that and it didn't work for me. Oh well - glad you found your solution! – mjkaufer Jan 15 '16 at 04:04
  • Had to fiddle around with it a bit. They should definitely make the docs more clear in that regard. – Carpetfizz Jan 15 '16 at 04:09

0 Answers0