Skip to content

campos

Get or set the camera position.

v = campos
campos([x y z])

Without arguments, returns the current camera position as [x y z]. With a 3-vector, sets it.

campos([10 10 5])
  • camtarget — Get or set the camera target (point the camera looks at).
  • camup — Get or set the camera up vector.
  • view — Set or query the camera view angle.