Re: Smoothly rotating to another angle on pano nodes
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2009-12-30 11:48:07
|
James C. Wilson wrote: > One problem that I've discovered with the > "check if current direction ~ target direction and then angle the camera > to precisly equal the target" is that if I pan myself while the program > is running, the program loses track of where it's going, and hits the 80 > EL pan limit, slowely spinning on the vertical access. Obviously, to > make any of this effective the panorama must be frozen from player > control. But since there's not any way to do that yet, I need to use the > one that won't hit a dead end, and right now that's the version that > checks how many times the function has run...Any suggestions? Instead of calculating the direction incrementally by adding small steps to the current direction, calculate it from scratch in every frame using the starting parameters (recorded when you start the animation) and the elapsed time (from the first argument of the timer function). -Christian |