class documentation

class Camera(engine.Camera):

Constructor: Camera(position, direction, plane, height, ...)

View In Hierarchy

Camera parameters for 3D rendering

Method __init__ Initialize the Camera.
Method __setattr__ Set a camera attribute, routing to the matching setter.
def __init__(self, position=Vector(0, 0, 0), direction=Vector(1, 0, 0), plane=Vector(0, 0.66, 0), height=1.0, distance=2.0, perspective=CAMERA_FIRST_PERSON):

Initialize the Camera.

Override so users can pick the perspective.

Parameters
position:VectorCamera position. Defaults to Vector(0, 0, 0).
direction:VectorView direction. Defaults to Vector(1, 0, 0).
plane:VectorCamera plane. Defaults to Vector(0, 0.66, 0).
height:floatCamera height. Defaults to 1.0.
distance:floatView distance. Defaults to 2.0.
perspective:intCamera perspective type. Defaults to CAMERA_FIRST_PERSON.
def __setattr__(self, name, value):

Set a camera attribute, routing to the matching setter.

Parameters
name:strAttribute name to set.
value:objectNew value for the attribute.