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¶
Along which axis the ray is cast
- Type:
enum in [‘XAXIS’, ‘YAXIS’, ‘ZAXIS’, ‘NEGXAXIS’, ‘NEGYAXIS’, ‘NEGZAXIS’], default ‘YAXIS’
- mask¶
Mask filter compared with object’s collision group
- Type:
boolean array of 16 items, default (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False)
- material¶
Only look for objects with this material (blank = all objects)
- Type:
string, default “”, (never None)
- property¶
Only look for objects with this property (blank = all objects)
- Type:
string, default “”, (never None)
- 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
PROPERTY
Property – Use a property for ray intersections.MATERIAL
Material – Use a material for ray intersections.
- 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
- classmethod bl_rna_get_subclass(id, default=None)¶
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
bpy.types.Struct
subclass
- classmethod bl_rna_get_subclass_py(id, default=None)¶
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type