RaySensor(Sensor)

base classes — bpy_struct, Sensor

class bpy.types.RaySensor(Sensor)

Sensor to detect intersections with a ray emanating from the current object

axis

Specify along which axis the ray is cast

Type :enum in [‘XAXIS’, ‘YAXIS’, ‘ZAXIS’, ‘NEGXAXIS’, ‘NEGYAXIS’, ‘NEGZAXIS’], default ‘YAXIS’
material

Only look for Objects with this material (blank = all objects)

Type :string, default “”
property

Only look for Objects with this property (blank = all objects)

Type :string, default “”
range

Sense objects no farther than this distance

Type :float in [0.01, 10000], default 0.0
ray_type

Toggle collision on material or property

Type :enum in [‘PROPERTY’, ‘MATERIAL’], default ‘PROPERTY’
use_x_ray

Toggle X-Ray option (see through objects that don’t have the property)

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

RandomSensor(Sensor)

Next topic

Region(bpy_struct)