Skip to content

raycasting help #29

Open
Open

Description

@heaversm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions