Ejemplo n.º 1
0
        /// <summary>
        /// Allows the game to run logic such as updating the world,
        /// checking for collisions, gathering input, and playing audio.
        /// </summary>
        public override void Update(double deltaTime)
        {
            cam.MoveCamera((float)deltaTime);

            GUIpanel.UpdateManually((float)deltaTime);

            if (physicsEnabled)
            {
                Character.UpdateAnimAll((float)deltaTime);

                Ragdoll.UpdateAll((float)deltaTime, cam);

                GameMain.World.Step((float)deltaTime);
            }
        }