Following a CZML entity and setting the camera angle in direction of travel

Hi guys,

I have a CZML entity that I am following with ‘viewer.trackedEntity’

Is there a way to orient the camera over time so that it follows the direction of travel?

I’ve had a go at setting the viewFrom parameter over time in the CZML using bearings but I haven’t succeeded in getting it working.

Ideally the reference frame also would be set to the tracked entity instead of East North Up on the globe.

Any ideas?

Hi Simon,

This issue sounds very similar to the thread on a follow camera. Matt has posted a basic solution, and we’re currently working on an addition to Cesium as a more permanent solution.

See the code example here:


  • Rachel

Fantastic, thanks Rachel I will take a look.