followTarget property

Node? followTarget
getter/setter pair

The node to follow. Its world-space position drives the camera; null parks the camera around the origin.

Implementation

// TODO(camera): optional collision retraction (pull in when geometry
// occludes the target, via Scene.raycast) and an optional separate look-at
// target distinct from the follow target.
Node? followTarget;