Exemplo n.º 1
0
 public static void serverCmdSetEditorFlyCamera(GameConnection client)
 {
     Models.User.Extendable.Camera camera = client["camera"];
     camera.setFlyMode();
     client.setControlObject(camera);
     syncEditorGui();
 }
Exemplo n.º 2
0
 public static void serverCmdSetEditorCameraStandard(GameConnection client)
 {
     Models.User.Extendable.Camera camera = client["camera"];
     camera.setFlyMode();
     camera["newtonMode"]     = false.AsString();
     camera["newtonRotation"] = false.AsString();
     client.setControlObject(camera);
     syncEditorGui();
 }
Exemplo n.º 3
0
 public static void serverCmdSetEditorCameraNewtonDamped(GameConnection client)
 {
     Models.User.Extendable.Camera camera = client["camera"];
     camera.setFlyMode();
     camera["newtonMode"]     = true.AsString();
     camera["newtonRotation"] = true.AsString();
     camera.setAngularVelocity(new Point3F("0 0 0"));
     client.setControlObject(camera);
     syncEditorGui();
 }
Exemplo n.º 4
0
        public override void setMode(Models.User.Extendable.Camera camera, string mode, SceneObject arg1, string arg2, string arg3)
        {
            switch (mode)
            {
            case "Observer":
                camera.setFlyMode();
                break;

            case "Corpse":
                camera.setOrbitMode(arg1, arg1.getTransform(), (float)0.5, (float)4.5, (float)4.5, false,
                                    new Point3F(), false);
                camera["orbitObj"] = arg1;
                break;
            }
            camera["mode"] = mode;
        }