Beispiel #1
0
        private static IControlScheme _buildPcControlScheme()
        {
            //Check for existing saved settings?
            //Implement default button?

            var controls = new PcControlScheme(0.25f, 100f);

            controls.SetMove(KeyCode.W, new Vector3(0, 0, 1));
            controls.SetMove(KeyCode.A, new Vector3(-1, 0, 0));
            controls.SetMove(KeyCode.D, new Vector3(1, 0, 0));
            controls.SetMove(KeyCode.S, new Vector3(0, 0, -1));

            return(controls);
        }
Beispiel #2
0
        private static IControlScheme _buildPcControlScheme()
        {
            //Check for existing saved settings?
            //Implement default button?
            float moveSpeed = 5.0f; // m/s motion speed (per unit player height)
            float lookSpeed = 3.0f; // mouse look speed (degrees rotation per pixel of mouse movement?)
            var   controls  = new PcControlScheme(moveSpeed, lookSpeed);

            controls.SetMove(KeyCode.W, new Vector3(0, 0, 1));
            controls.SetMove(KeyCode.A, new Vector3(-1, 0, 0));
            controls.SetMove(KeyCode.D, new Vector3(1, 0, 0));
            controls.SetMove(KeyCode.S, new Vector3(0, 0, -1));
            controls.SetMove(KeyCode.Q, new Vector3(0, -1, 0));
            controls.SetMove(KeyCode.E, new Vector3(0, +1, 0));

            return(controls);
        }