Camera2d
Extends: Camera
Properties
top(float)bottom(float)right(float)left(float)near(float)far(float)name(string)
Constructor
new Camera2d(): Camera2dInstance Methods
setTarget(targetPos: BGE.Math.Vector): void
Parameters
targetPos(BGE.Math.Vector)
Returns
void
rotate(rotation: BGE.Math.Vector): void
Parameters
rotation(BGE.Math.Vector)
Returns
void
isInView(point: BGE.Math.Vector): boolean
Parameters
point(BGE.Math.Vector)
Returns
boolean
computeWorldToCameraMatrix(): void
Returns
void
distanceFromCameraFront(point: BGE.Math.Vector): float
Parameters
point(BGE.Math.Vector)
Returns
float
worldPointToCanvasPoint(
pWorld: BGE.Math.Vector,
): BGE.Math.Vector
Parameters
pWorld(BGE.Math.Vector)
Returns
BGE.Math.Vector