MovementSensor(Sensor)
base classes — bpy_struct, Sensor
- class bpy.types.MovementSensor(Sensor)
Sensor to detect if the owner has moved
- axis
Along which axis movement has to be detected (default
'XAXIS')- Type:
Literal[‘XAXIS’, ‘YAXIS’, ‘ZAXIS’, ‘NEGXAXIS’, ‘NEGYAXIS’, ‘NEGZAXIS’, ‘ALLAXIS’]
- threshold
Set Threshold (in [0.001, 10000], default 0.01)
- Type:
float
- use_local
Toggle beetween local/global coordinates (default False)
- Type:
bool
- 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:
- 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