FlyTo with Roll

Jun 24, 2010 at 10:20 AM
Hi I see that the FlyTo does not contain a parameter for Roll, so I assume I should just change the Roll seperately. I code :- VEMap.FlyTo(New VELatLong(LATITUDE, LONGITUDE), PITCH, YAW, ALTITUDE) then VEMap.Roll = ROLL but, the roll angle is just correct for a flicker and the horizon goes horizontal again. I've tried doing the Roll first, but the same thing happens. How do I FlyTo and set my current Roll at the same time?? Thanks in advance. Jason.
Jun 29, 2010 at 6:12 PM
Jason, When you do FlyTo it overwrites the camera parameters until the animation is complete. VEMap.FlyTo just calls the GlobeControl.FlyTo: this.globeControl.Host.Navigation.FlyTo(lla, pitch, yaw, false, cam); That method does not take a roll parameter, so you have two options: 1) Pass an event handler for a callback to FlyTo and it will be called when the animation is complete. At that point either set the roll or animate the roll using a storyboard or timer. 2) If you really need the roll to animate at the same time as the FlyTo, you'll have to get your hands dirty and write a custom camera controller. Check these links if you are going to attempt that: