Skip to content

Instantly share code, notes, and snippets.

@jensarps
Created April 8, 2012 15:59
Show Gist options
  • Save jensarps/2338149 to your computer and use it in GitHub Desktop.
Save jensarps/2338149 to your computer and use it in GitHub Desktop.
Modifying the three.js Ray class
// modify this:
} else if ( object instanceof THREE.Mesh ) {
// to:
} else if ( object.matrixWorld && object.geometry ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment