PathCameraTests CameraCanBeMovedOnLinearTrackWithScrollWheel Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Tests.Cameras
Assembly: DeltaEngine.Rendering3D.Tests (in DeltaEngine.Rendering3D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CameraCanBeMovedOnLinearTrackWithScrollWheel()
Examples

[Test]
public void CameraCanBeMovedOnLinearTrackWithScrollWheel()
{
    new Grid3D(new Size(GridDimension));
    PathCamera camera = CreatePathCamera(GetLinearViewMatrixTrack(GridDimension));
    Command.Register(Command.Zoom, new MouseZoomTrigger());
    new Command(Command.Zoom, zoomAmount => camera.CurrentFrame += (int)(zoomAmount * 10));
}
See Also