Piccolo.NET

PControlEventHandler.DirectCameraViewToControl Method 

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

public virtual PActivity DirectCameraViewToControl(
   PCamera aCamera,
   PControl aControlNode,
   PPickPath path,
   int duration
);

Parameters

aCamera
The camera whose view will be animated.
aControlNode
The control node to animate to.
path
The pick path through which the control node was picked.
duration
The length of the animation.

Return Value

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

See Also

PControlEventHandler Class | UMD.HCIL.PiccoloX.Events Namespace