예제 #1
0
파일: Game.cs 프로젝트: asarudick/Soapvox
        private void ChangeCameraBehavior(Camera.Behavior behavior)
        {
            if (camera.CurrentBehavior == behavior)
            {
                return;
            }


            camera.CurrentBehavior = behavior;

            // Position the camera behind and 30 degrees above the target.
            if (behavior == Camera.Behavior.Orbit)
            {
                camera.Rotate(0.0f, -30.0f, 0.0f);
            }
        }