import mathutils
import bge
game_objects = bge.logic.getCurrentScene().objects
def shoot(self):
startVec = mathutils.Vector((0, 1, 0));
obj = self.owner
vec = mathutils.Vector((0, 1, 0)) #obj.localOrientation #
sender = obj
while True:
mirror, location, normal = sender.rayCast(vec, None, 60)#, obj #, 0, "", 1, 0)
#print(mirror, location, normal)
if mirror != None:
vec = vec.reflect(normal)
print(mirror)
sender = mirror