Functions | |
CAM3D | cam3d.new () |
Makes a new camera. More... | |
NIL | cam3d.position (CAM3D camera, TABLE pos) |
Changes the camera position. More... | |
NIL | cam3d.rotation (CAM3D camera, TABLE rot) |
Changes the camera rotation. More... | |
NIL | cam3d.eye (CAM3D camera, TABLE eye) |
Changes the camera's view. More... | |
NIL | cam3d.up (CAM3D camera, TABLE up) |
Changes the camera's "up" view (this is a normalized vector pointing up). More... | |
NIL | cam3d.set (CAM3D camera) |
Apply the changes to the 3D camera. More... | |
Using the 3D camera.
CAM3D cam3d.new | ( | ) |
Makes a new camera.
NIL cam3d.position | ( | CAM3D | camera, |
TABLE | pos | ||
) |
Changes the camera position.
camera | A 3D camera. |
pos | A table with the position values for the 3 axes (x,y,z). |
NIL cam3d.rotation | ( | CAM3D | camera, |
TABLE | rot | ||
) |
Changes the camera rotation.
camera | A 3D camera. |
rot | A table with the rotation values for the 3 axes (x,y,z). |
NIL cam3d.eye | ( | CAM3D | camera, |
TABLE | eye | ||
) |
Changes the camera's view.
camera | A 3D camera. |
eye | A table with the camera's view values for the 3 axes (x,y,z). |
NIL cam3d.up | ( | CAM3D | camera, |
TABLE | up | ||
) |
Changes the camera's "up" view (this is a normalized vector pointing up).
camera | A 3D camera. |
up | A table with the camera's "up" view values for the 3 axes (x,y,z). |
NIL cam3d.set | ( | CAM3D | camera | ) |
Apply the changes to the 3D camera.
camera | A 3D camera. |