Ejemplo n.º 1
0
 def __init__(self, cameraPosition, cameraTarget, sourceMatrix):
     CameraStrategyLegacyProxy.__init__(self, cameraPosition, cameraTarget, sourceMatrix, BigWorld.CursorFree())
     self.__addComponents()
     self._input.isContinuousFreeInput = False
     self._input.accelerationDuration = 0.075
     self._input.decelerationDuration = 0.075
     self._cursor = BigWorld.CursorFree()
     self._cursor.sourceMatrix = self._planeMtxProvider
     self._cursor.planeFollowingSpeed = 3.0
     self._cursor.targetUp = Math.Vector4(0, 1, 0, 0)
     self._cursor.alignmentSpeedUp = 10000.0
     self._cursorProvider.a = self._cursor.matrix
     self._cameraBasis.b = BigWorld.ShiftedMatrixProvider(self._cursorProvider, Math.Vector3(0.0, 0.0, 0.0))
Ejemplo n.º 2
0
 def __init__(self, cameraPosition, cameraTarget, sourceMatrix):
     CameraStrategyLegacyProxy.__init__(self, cameraPosition, cameraTarget, sourceMatrix, BigWorld.CursorFree())
     self.__horizontalStrafe = BigWorld.CameraComponentStrafe()
     self.__horizontalStrafe.positionSettings.normalizedRotation = 0.85
     self.__horizontalStrafe.position = cameraPosition
     self.__horizontalStrafe.planeMatrix = self._planeMtxProvider
     self.__horizontalStrafe.cursorMatrix = self._cursorProvider
     self.__horizontalStrafe.targetEntityId = BigWorld.player().id
     self._components['horizontalStrafe'] = self.__horizontalStrafe
     self._overlook = False
     self._input.isContinuousFreeInput = False
     self._input.accelerationDuration = 0.075
     self._input.decelerationDuration = 0.075
     self.__behaviorHorizon = 1