Camera
Source function static camerafield.adjust(real offset, real duration)
Source
function static player.adjustCameraBounds(int adjustMethod, real dxWest, real dxEast, real dyNorth, real dySouth)
Source
function static camerasetup.apply(boolean doPan, boolean panTimed)
Source
function static camerasetup.apply(boolean doPan, player whichPlayer, real duration)
Source
function static camerasetup.applyForceDuration(boolean doPan, real forceDuration)
Source
function static camerasetup.applyForceDurationSmooth(boolean doPan, real forcedDuration, real easeInDuration, real easeOutDuration, real smoothFactor)
Source
function static camerasetup.applyForceDurationWithZ(real zDestOffset, real forceDuration)
Source
function static camerasetup.applyWithZ(real zDestOffset)
Source
function static player.cameraClearNoise()
Source
function static player.cameraSetEQNoise(real magnitude)
Source
function static player.cameraSetSourceNoise(real magnitude, real velocity)
Source
function static player.cameraSetTargetNoise(real magnitude, real velocity)
Source
function static player.cameraSetupApply(boolean doPan, camerasetup whichSetup, real duration)
Source
function static camerafield.get() returns real
Source
function getCameraBoundMax() returns vec2
Source
function getCameraBoundMin() returns vec2
Source
function getCameraEyePosition() returns vec2
Source
function getCameraEyePosition3() returns vec3
Source
function getCameraTargetPosition() returns vec2
Source
function getCameraTargetPosition3() returns vec3
Source
function static camerasetup.getDestPosition() returns vec2
Source
function static camerasetup.getField(camerafield whichField) returns real
Source
function static camerafield.getFieldSwap(camerasetup whichSetup) returns real
Source
function static camerasetup.getFieldSwap(camerafield whichField) returns real
Source
function panCameraTo(vec2 pos)
Source
function panCameraTo(vec3 pos)
Source
Pans the camera to pos.x, pos.y and absolute height pos.z
If pos.z > pos.getTerrainZ, the camera will not drop below
the terrain on its path.
function static player.panCameraTo(vec2 pos)
Source
function static player.panCameraTo(vec3 pos)
Source
function panCameraToTimed(vec2 pos, real duration)
Source
function panCameraToTimed(vec3 pos, real duration)
Source
function static player.panCameraToTimed(vec2 pos, real duration)
Source
function static player.panCameraToTimed(vec3 pos, real duration)
Source
function static player.resetToGameCamera(real duration)
Source
function static camerafield.set(real value, real duration)
Source
function setCameraBounds(vec2 bottomLeft, vec2 topRight, vec2 topLeft, vec2 bottomRight)
Source
function static player.setCameraBoundsToRect(rect r)
Source
function static camerafield.setCameraField(player whichPlayer, real value, real duration)
Source
function static player.setCameraField(camerafield whichField, real value, real duration)
Source
function static player.setCameraOrientController(unit whichUnit, vec2 offset)
Source
function static unit.setCameraOrientController(vec2 offset)
Source
function static unit.setCameraOrientControllerForPlayer(vec2 offset, player whichPlayer)
Source
function setCameraPosition(vec2 pos)
Source
function static player.setCameraPosition(vec2 pos)
Source
function setCameraQuickPosition(vec2 pos)
Source
function static player.setCameraQuickPosition(vec2 pos)
Source
function setCameraRotateMode(vec2 pos, angle toSweep, real duration)
Source
function static unit.setCameraTargetController(vec2 offset, boolean inheritOrientation)
Source
function static player.setCameraTargetControllerNoZ(unit whichUnit, vec2 offset, boolean inheritOrientation)
Source
function setCinematicCamera(string cameraModelFile)
Source
Runs the camera through the cinematic camera
specified in cameraModelFile. Existing cameras are available
via Objects.cameraXXX paths"
function static player.setCinematicCamera(string cameraModelFile)
Source
Runs the camera for the player through the cinematic camera
specified in cameraModelFile. Existing cameras are available
via Objects.cameraXXX paths"
function static camerasetup.setDestPosition(vec2 pos, real duration)
Source
function static camerasetup.setField(camerafield whichField, real value, real duration)
Source
function static player.smartCameraPan(vec2 pos, real duration)
Source
Pans the camera depending on how far pos is from the current
camera target:
- If the distance is larger than
bj_SMARTPAN_TRESHOLD_SNAP, the camera snaps instantenously
- If the distance is larger than bj_SMARTPAN_TRESHOLD_PAN, the
camera pans over the specified duration
- If the distance is smaller than bj_SMARTPAN_TRESHOLD_PAN, the
camera doesn't move at all.
function static player.stopCamera()
Source