How to Fly to a model

I want to create a flight animation to move to (and later follow) the movement of a model. The Sandcastle demo sets the camera position to jump directly to the desired location, but I’m unable to map that into a CameraFlightPath to create a smoother fly-to effect.

The closest I can get to it is below (bold is what I changed from the Sandcastle model demo). The animation in this case starts out fine, but towards the end ‘jumps’ to a different view and ends up pointing off axis from the model. If I also try applying the transform to the direction, then I get invalid array length errors.


  • David