Clears the internal offsets due to setting the position of the camera.

If you set the position or the orientation of the camera, the viewer will compute a set of offsets relative to the camera position required by the animation, or if there is no camera animation defined, relative to the (0,0,0) position. The viewer holds these offsets while the animation is playing. If you want to return to the default camera position, you call clearOffsets. The time parameter allows you to do a smooth blend back to the default position.

Syntax:

void clearOffsets(time as float)
Parameters:
time

The time in seconds to blend from the current offset position and orientation to the default one.

See also:

Class camera |

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.