Ejemplo n.º 1
0
        public static void cam_rotate(VNNeoController game, Vector3 param)
        {
            CamData camobj = game.get_camera_num(0);
            Vector3 v3     = camobj.rotation;

            camobj.rotation = new Vector3(v3.x + param.x, v3.y + param.y, v3.z + param.z);
            game.move_camera_obj(camobj);
        }
Ejemplo n.º 2
0
        public static void cam_zoom(VNNeoController game, float zoom_delta)
        {
            var camobj = game.get_camera_num(0);
            var dv3    = camobj.distance;

            // param = zoom_delta, use positive value to zoom in, and negative value for zoom out
            camobj.distance = new Vector3(dv3.x, dv3.y, dv3.z + zoom_delta);
            game.move_camera_obj(camobj);
        }