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.
Re-exports: Vectors
public function getCameraBoundMin() returns vec2
public function getCameraBoundMax() returns vec2
public function getCameraTargetPosition() returns vec2
public function getCameraTargetPosition3() returns vec3
public function getCameraEyePosition() returns vec2
public function getCameraEyePosition3() returns vec3
public function setCameraPosition(vec2 pos)
public function setCameraQuickPosition(vec2 pos)
public function setCameraBounds(vec2 bottomLeft, vec2 topRight, vec2 topLeft, vec2 bottomRight)
public function panCameraTo(vec2 pos)
public function panCameraToTimed(vec2 pos, real duration)
public function panCameraTo(vec3 pos)
public function panCameraToTimed(vec3 pos, real duration)
public function setCameraRotateMode(vec2 pos, angle toSweep, real duration)
public function setCinematicCamera(string cameraModelFile)
Runs the camera through the cinematic camera specified in cameraModelFile. Existing cameras are available via Objects.cameraXXX paths”
public function camerafield.set(real value, real duration)
public function camerafield.adjust(real offset, real duration)
public function camerafield.get() returns real
public function camerafield.getFieldSwap(camerasetup whichSetup) returns real
public function camerafield.setCameraField(player whichPlayer, real value, real duration)
public function camerasetup.setField(camerafield whichField, real value, real duration)
public function camerasetup.getField(camerafield whichField) returns real
public function camerasetup.setDestPosition(vec2 pos, real duration)
public function camerasetup.getDestPosition() returns vec2
public function camerasetup.apply(boolean doPan, boolean panTimed)
public function camerasetup.applyWithZ(real zDestOffset)
public function camerasetup.applyForceDuration(boolean doPan, real forceDuration)
public function camerasetup.applyForceDurationWithZ(real zDestOffset, real forceDuration)
public function camerasetup.apply(boolean doPan, player whichPlayer, real duration)
public function camerasetup.getFieldSwap(camerafield whichField) returns real
public function camerasetup.applyForceDurationSmooth(boolean doPan, real forcedDuration, real easeInDuration, real easeOutDuration, real smoothFactor)
public function player.cameraSetupApply(boolean doPan, camerasetup whichSetup, real duration)
public function player.setCameraField(camerafield whichField, real value, real duration)
public function player.setCameraTargetControllerNoZ(unit whichUnit, vec2 offset, boolean inheritOrientation)
public function player.setCameraPosition(vec2 pos)
public function player.panCameraTo(vec2 pos)
public function player.panCameraTo(vec3 pos)
public function player.panCameraToTimed(vec2 pos, real duration)
public function player.panCameraToTimed(vec3 pos, real duration)
public function player.smartCameraPan(vec2 pos, real duration)
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.
public function player.setCinematicCamera(string cameraModelFile)
Runs the camera for the player through the cinematic camera specified in cameraModelFile. Existing cameras are available via Objects.cameraXXX paths”
public function player.resetToGameCamera(real duration)
public function player.cameraSetSourceNoise(real magnitude, real velocity)
public function player.cameraSetTargetNoise(real magnitude, real velocity)
public function player.cameraSetEQNoise(real magnitude)
public function player.cameraClearNoise()
public function player.setCameraBoundsToRect(rect r)
public function player.adjustCameraBounds(integer adjustMethod, real dxWest, real dxEast, real dyNorth, real dySouth)
public function player.setCameraQuickPosition(vec2 pos)
public function player.stopCamera()
public function player.setCameraOrientController(unit whichUnit, vec2 offset)
public function unit.setCameraTargetController(vec2 offset, boolean inheritOrientation)
public function unit.setCameraOrientController(vec2 offset)
public function unit.setCameraOrientControllerForPlayer(vec2 offset, player whichPlayer)