Making nodes turn to a Camera node

You can set 3D nodes to automatically turn towards a Camera node.

For example, the Plane nodes in the top image automatically turn towards a Camera node, while the bottom image shows the same scene, but the nodes do not turn towards a Camera node.

../../_images/face-to-camera-enabled.png ../../_images/face-to-camera-disabled.png

To make nodes turn to a Camera node:

  1. In the Node Tree select the nodes that you want to automatically turn to a Camera node and in the Properties add and set the Constraints > Face to Camera Mode property.

    ../../_images/plane-grid-in-node-tree.png ../../_images/face-to-camera-mode.png

    Look at sets the nodes to rotate along all axes to turn to the camera.

    ../../_images/face-to-camera-look-at.png

    Billboarding sets the nodes to rotate with the rotation of the camera, keeping the nodes rotated perpendicular to the camera field of view.

    ../../_images/face-to-camera-billboarding-enabled.png

    Cylindrical sets the nodes to turn to the camera so that they turn around an imaginary cylinder on the y axis, but do not rotate along the x axis.

    ../../_images/face-to-camera-cylindrical.png

    When you set the Face to Camera Mode property, Kanzi by default makes the nodes turn to the default camera of the Scene node.

  2. (Optional) To turn the nodes to any camera in the Scene, in the Properties add the Constraints > Face to Camera Target Camera property, and set it to the Camera node towards which you want the nodes to turn.

    ../../_images/face-to-camera-target-camera.png