Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raycasting help #29

Open
heaversm opened this issue Jan 24, 2015 · 0 comments
Open

raycasting help #29

heaversm opened this issue Jan 24, 2015 · 0 comments

Comments

@heaversm
Copy link

Hi - it's not an issue per se - but I was hoping you might help me modify your ray casting example to my particular scenario - I'm moving a camera through a scene that contains an obj I've loaded as a mesh, and I want to detect if the camera has collided with any of the walls of my obj.

I've based my code off this threejs example: http://threejs.org/examples/misc_controls_pointerlock.html, and tried to apply your example here: http://stemkoski.github.io/Three.js/Collision-Detection.html - but I can't seem to get a collision.

My example is here

and the relevant javascript is here:

If you could shed any light on how to detect collisions with the camera, that'd be great. Thanks so much for making so many examples and sharing them online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant