import mathutils
import bge
game_objects = bge.logic.getCurrentScene().objects
def shoot(self):
obj = self.owner
vec = mathutils.Vector((0, 1, 0))#.rotate(obj.worldOrientation) #
#x, location, normal = obj.rayCast(obj, None)
#print(normal)
mirror, location, normal = obj.rayCast(vec, None, 60)#, obj #, 0, "", 1, 0)
if mirror != None:
reflectedVec = vec.reflect(normal)
hitObj, hitLocation, hitNormal = mirror.rayCast(reflectedVec, location, 60) #, None, 0, "", 1, 0)