Skip to content

camup

Get or set the camera up vector.

v = camup
camup([x y z])

Without arguments, returns the up direction. With a 3-vector, sets it. Useful for non-standard orientations (e.g. when displaying data where Z is the natural “up” but the default camera puts Y up).

camup([0 0 1])
  • campos — Get or set the camera position.
  • camtarget — Get or set the camera target (point the camera looks at).