toCamera method

NodeCamera toCamera()

Returns a NodeCamera backed by the owning node.

The returned camera tracks the node: moving or rotating the node moves the view on the next frame, so it is safe to hold in a persistent RenderView.

Implementation

NodeCamera toCamera() => NodeCamera(node, projection);