Make cylinder be oriented like a camera

I don’t know how to achive that effect. There is my attempt to do this.

sandcastle example

I want this red cylinder to have same orientation as camera.

When camera looks down to the globe surface cylinder should also point in the same direction.

If you’re simply trying to visualize the camera frustum, you might find the 3D Tiles Inspector helpful for this:

Select “+ Update” and then “Freeze frame”. This uses the DebugCameraPrimitive: