Beispiel #1
0
 def __init__(self):
     target = BigWorld.target
     target.selectionFovDegrees = 1.0
     target.deselectionFovDegrees = 80.0
     target.maxDistance = 710.0
     target.skeletonCheckEnabled = True
     BigWorld.target.isEnabled = False
     self.__mouseMatProv = BigWorld.MouseTargettingMatrix()
Beispiel #2
0
def getMouseTargettingRay():
    mtm = Math.Matrix(BigWorld.MouseTargettingMatrix())
    src = mtm.applyToOrigin()
    far = BigWorld.projection().farPlane
    dst = src + mtm.applyToAxis(2).scale(far)
    return (src, dst)