Пример #1
0
        public static ARComplexCamera CreateSpringFollowCamera(GraphicsDevice device, AR3DObject unit)
        {
            ARComplexCamera c = new ARComplexCamera(device);

            c.cameraType      = CameraType.SpringCamera;
            c.cameraObjOffset = new Vector3(0, 10, 40);
            c.lookAtOffset    = new Vector3(0, 4, -8);
            c.follow(unit);
            return(c);
        }
Пример #2
0
        public static ARComplexCamera CreateAODChaseCamera(GraphicsDevice device, AR3DObject unit)
        {
            ARComplexCamera c = new ARComplexCamera(device);

            c.cameraType = CameraType.AODChaseCamera;

            c.cameraObjOffset = new Vector3(0, 10, 40);
            c.lookAtOffset    = new Vector3(0, 0, -1000);

            c.follow(unit);
            return(c);
        }
Пример #3
0
        public static ARComplexCamera CreateNormalFollowCamera(GraphicsDevice device, AR3DObject unit)
        {
            ARComplexCamera c = new ARComplexCamera(device);

            c.cameraType = CameraType.NormalCamera;

            c.cameraObjOffset = new Vector3(6, 5, 20);
            c.lookAtOffset    = new Vector3(0, 0, -1000);

            c.follow(unit);

            return(c);
        }