Vousk-prod. Posted February 24, 2015 Share Posted February 24, 2015 Hello,I'm playing with an ArcRotateCamera and collisions and I wonder if I can be informed that collision occurs.I'm simply usingscene.collisionsEnabled = true;camera.checkCollisions = true;myMesh.checkCollisions = true;Works great, but I'd like to be informed when my camera collide with the mesh. Is there a callback system or something ? I didn't find such in the source code.I could eventually use mesh.intersectsPoint() and define my camera position as the checked point, but that won't take the camera's collisionRadius in account. I can aslo create a non visible sphere, parent it to the camera and check for mesh intersecting with this dummy sphere, but that's not so elegant. Is there a direct way to know collision occured ? Quote Link to comment Share on other sites More sharing options...
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.