Skip to content

camtarget

Get or set the camera target (point the camera looks at).

v = camtarget
camtarget([x y z])

Without arguments, returns the current camera target. With a 3-vector, sets it.

camtarget([0 0 0])
  • campos — Get or set the camera position.
  • camlookat — Aim the camera at an object or point.
  • view — Set or query the camera view angle.