internal override LookAtSurfaceCameraMover GetMover() { if (null == mover) { var sphereSurface = surface.GetSurface() as SphereSurface; mover = new SphereMover(lookAtCamera.GetCamera(), sphereSurface, zoomSpeed, panSpeed); } return mover; }
public void SetUp() { surfaceOrigin = Vector3.zero; surfaceUp = Vector3.up; surfaceRadius = 10f; surface = new SphereSurface(surfaceOrigin, surfaceRadius, surfaceUp); initialCameraDistance = 100f; timeDelta = .25f; var go = new GameObject(); transform = go.transform; camera = new LookAtSurfaceCamera(transform, surface); camera.InitializeCamera(); camera.SetDistanceToTarget(initialCameraDistance); zoomSpeed = 10f; rotateSpeed = Mathf.PI; testObj = new SphereMover(camera, surface, zoomSpeed, rotateSpeed); }