Exemple #1
0
 public static void serverCmdSetEditorFlyCamera(GameConnection client)
 {
     Extendable.Camera camera = client["camera"];
     camera.setFlyMode();
     client.setControlObject(camera);
     syncEditorGui();
 }
 public static void serverCmdSetEditorCameraStandard(GameConnection client)
 {
     Extendable.Camera camera = client["camera"];
     camera.setFlyMode();
     camera["newtonMode"]     = false.AsString();
     camera["newtonRotation"] = false.AsString();
     client.setControlObject(camera);
 }
 public static void serverCmdSetEditorCameraNewtonDamped(GameConnection client)
 {
     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);
 }
Exemple #4
0
        public override void setMode(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;
        }