class documentation
class Camera(engine.Camera):
Constructor: Camera(position, direction, plane, height, ...)
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:Vector | Camera position. Defaults to Vector(0, 0, 0). |
direction:Vector | View direction. Defaults to Vector(1, 0, 0). |
plane:Vector | Camera plane. Defaults to Vector(0, 0.66, 0). |
height:float | Camera height. Defaults to 1.0. |
distance:float | View distance. Defaults to 2.0. |
perspective:int | Camera perspective type. Defaults to CAMERA_FIRST_PERSON. |