Piccolo.NET

PNavigationEventHandler.DirectCameraViewToFocus Method 

Animates the camera's view to keep the focus node on the screen and at 100 percent scale with minimal view movement.

public virtual PActivity DirectCameraViewToFocus(
   PCamera aCamera,
   PNode aFocusNode,
   int duration
);

Parameters

aCamera
The camera whose view will be animated.
aFocusNode
The focus node to animate to.
duration
The length of the animation.

Return Value

The activity that animates the camera's view to the focus node.

See Also

PNavigationEventHandler Class | UMD.HCIL.PiccoloX.Events Namespace