Raycast¶
Functionality¶
Functionality is almost completely analogous to the two built-in blender operators
bpy.context.scene.ray_cast
and object.ray_cast
.
Ray is casted from “start” vector to “end” vector and can hit polygons of mesh objects.
see docs: bpy.types.Object.ray_cast and bpy.types.Scene.ray_cast
Parameters¶
parameter | description |
---|---|
object name | Name of object to analize. (For object_space mode only) |
raycast modes | In object_space mode: node works like In world_space mode: node works like |
Output sockets¶
socket name | description |
---|---|
Hitp | Hit location for every raycast |
Hitnorm | Normal of hit polygon (in “object_space” mode-local coordinates, in “world_space”- global |
Index/succes | For object_space mode: index of hit polygon.
For world_space mode: True if ray hit mesh object, otherwise False . |
data object | bpy.data.objects[hit object] or None type if ray doesn’t hit a mesh object.
(only in “world_space” mode) |
hit object matrix | Matrix of hit/struck object. (only in “world_space” mode) |