本文整理汇总了Python中AvatarInputHandler.AimingSystems.IAimingSystem.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python IAimingSystem.__init__方法的具体用法?Python IAimingSystem.__init__怎么用?Python IAimingSystem.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AvatarInputHandler.AimingSystems.IAimingSystem
的用法示例。
在下文中一共展示了IAimingSystem.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from AvatarInputHandler.AimingSystems import IAimingSystem [as 别名]
# 或者: from AvatarInputHandler.AimingSystems.IAimingSystem import __init__ [as 别名]
def __init__(self, vehicleMProv, heightAboveTarget, focusRadius, aimMatrix, anglesRange, enableSmartShotPointCalc = True):
IAimingSystem.__init__(self)
self.__aimMatrix = aimMatrix
self.__vehicleMProv = vehicleMProv
self.__anglesRange = anglesRange
self.__cursor = BigWorld.ThirdPersonProvider()
self.__cursor.base = vehicleMProv
self.__cursor.heightAboveBase = heightAboveTarget
self.__cursor.focusRadius = focusRadius
self.__shotPointCalculator = ShotPointCalculatorPlanar() if enableSmartShotPointCalc else None
示例2: __init__
# 需要导入模块: from AvatarInputHandler.AimingSystems import IAimingSystem [as 别名]
# 或者: from AvatarInputHandler.AimingSystems.IAimingSystem import __init__ [as 别名]
def __init__(self):
IAimingSystem.__init__(self)
self.__idealTurretYaw = 0.0
self.__idealGunPitch = 0.0
self.__worldYaw = 0.0
self.__worldPitch = 0.0
self.__vehicleTypeDescriptor = None
self.__vehicleMProv = None
self.__vehiclePrevMat = None
self.__yprDeviationConstraints = Vector3(math.pi * 2.1, math.pi / 2 * 0.95, 0.0)
self.__oscillator = Oscillator(1.0, Vector3(0.0, 0.0, 15.0), Vector3(0.0, 0.0, 3.5), self.__yprDeviationConstraints)
示例3: __init__
# 需要导入模块: from AvatarInputHandler.AimingSystems import IAimingSystem [as 别名]
# 或者: from AvatarInputHandler.AimingSystems.IAimingSystem import __init__ [as 别名]
def __init__(self, dataSec):
IAimingSystem.__init__(self)
self.__idealYaw = 0.0
self.__idealPitch = 0.0
self.__g_curPitch = 0.0
self.__g_curYaw = 0.0
self.__vehicleTypeDescriptor = None
self.__vehicleMProv = None
self.__vehiclePrevMat = None
self.__yprDeviationConstraints = Vector3(math.pi * 2.1, math.pi / 2.0 * 0.95, 0.0)
self.__oscillator = Oscillator(1.0, Vector3(0.0, 0.0, 15.0), Vector3(0.0, 0.0, 3.5), self.__yprDeviationConstraints)
self.__dInputPitch = 0.0
self.__dInputYaw = 0.0
self.__pitchfilter = InputFilter()
self.reloadConfig(dataSec)