Skip to content

Instantly share code, notes, and snippets.

@AndrewRayCode
Created July 9, 2016 20:12
Show Gist options
  • Save AndrewRayCode/64ffd8b5c94aa2e9d42768adb5725c43 to your computer and use it in GitHub Desktop.
Save AndrewRayCode/64ffd8b5c94aa2e9d42768adb5725c43 to your computer and use it in GitHub Desktop.
localA = current_mesh.matrix_world.inverted() * Vector( ( 0, 0, 10 ) )
localB = current_mesh.matrix_world.inverted() * Vector( ( 0, 0, 0 ) )
current_mesh.ray_cast( localA, localB )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment