I have a model of a helicopter and a set of points starting at ground level, rising vertically and then flying more or less horizontally to a destination.
When I run the flightpath using the timeline widget, the model flies the first vertical section of the flight path with the helicopter nose pointing straight up which is a problem.
I tried specifying a modelMatrix with a transform to the entity I added to the viewer trackedEntity but that had no effect.
Is there a way to override the roll,pitch and yaw of my model at each of the SamplePositionProperty points of the flightpath, or to get an event callback per frame to set the orientation override?
Advice or sample code would be much appreciated.