hello,
I want to create a ray from the mouse cursor that gives me the intersection point and normal to any object in the scene
I cant find any code doing that, is it possible at all in python (not bge!)
thanks
hello,
I want to create a ray from the mouse cursor that gives me the intersection point and normal to any object in the scene
I cant find any code doing that, is it possible at all in python (not bge!)
thanks
There is a ray_cast method on Scene objects. http://www.blender.org/api/blender_python_api_2_74_0/bpy.types.Scene.html
You also should look into the documentation about modal operators how to react to mouse events and so on.
There’s a ray cast example in the templates menu of the Text Editor