B.Graph.Camera() -> B.Graph.Locator

Represents a camera.

To create the object use B.Graph.makeCamera().

METHODS:

enable(enable, deep)

Enables/disables camera.

PARAMETERS:

{boolean} enable

{boolean} [deep] = false

true if you want to set value through the whole hierarchy

RETURNS:

enable()

Returns if this camera enabled or not.

RETURNS:

{boolean}

stages(value, deep)

Sets stage or array of stages.

PARAMETERS:

{Array.<B.Render.Stage> | B.Render.Stage | null} value

pass null if you want to remove all stages from the camera

{boolean} [deep] = false

true if you want to set value through the whole hierarchy

RETURNS:

stages()

Returns array of stage names.

RETURNS:

{Array.<B.Render.Stage>}

near(zValue, deep)

Sets z-value of the near plane.

PARAMETERS:

{number} zValue

{boolean} [deep] = false

true if you want to set value through the whole hierarchy

RETURNS:

near()

Returns z-value of the near plane.

RETURNS:

{number}

z-value

far(zValue, deep)

Sets z-value of the far plane.

PARAMETERS:

{number} zValue

{boolean} [deep] = false

true if you want to set value through the whole hierarchy

RETURNS:

far()

Returns z-value of the far plane.

RETURNS:

{number}

z-value

aspect(value, deep)

Sets camera aspect.

PARAMETERS:

{number} value

{boolean} [deep] = false

true if you want to set value through the whole hierarchy

RETURNS:

aspect()

Returns camera aspect.

RETURNS:

{number}

value

fov(value, deep)

Sets field of view (angle in radians).

PARAMETERS:

{number} value

{boolean} [deep] = false

true if you want to set value through the whole hierarchy

RETURNS:

fov()

Returns field of view (angle in radians).

RETURNS:

{number}

value

METHODS:

EVENTS: