Source code for sensor.ray

[docs]class Ray(): def __init__(body,pos,axis,max_range): """ adds a ray caster to the world body: The body to connect the raycaster to pos: the position axis: the unit vector describing the direction the ary caster is facing max_range: maximum range of the ray caster """ pass
[docs] def get_distance(): """returns the distance to the nearest object""" pass