AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2013-01-27 22:26:00 (12 years 2 months ago)
Author:Natalie Adams
Branch:default
Commit:26fa1f6870d6
Parents: ceaf80f9f08c
Message:Adding option to use second precision instead of milliosecond

Changes:
Maxios/Axios_settings.cs (1 diff)
Maxios/ScreenSystem/PhysicsGameScreen.cs (2 diffs)

File differences

axios/Axios_settings.cs
119119
120120
121121
122
123
124
122125
123126
124127
 * - Adding extension to mousestate (Position) to get a Vector2 object of the position
 * - Added MouseAimVector to AGS - this allows you to get a vector to "shoot" with (realtive to the mouse and another object) a LinearVelocity in Farseer
 *
 * 1.0.1.8 - 1/12/2012
 * - Adding UseSecondStep flag in PhysicsGameScreen (default false)
 *
 */
#endregion
axios/ScreenSystem/PhysicsGameScreen.cs
2121
2222
2323
24
24
2525
2626
2727
......
101101
102102
103103
104
104
105
106
107
105108
106109
107110
        private float _agentTorque;
        private FixedMouseJoint _fixedMouseJoint;
        private Body _userAgent;
        public bool UseSecondStep = false;
        protected PhysicsGameScreen()
        {
            TransitionOnTime = TimeSpan.FromSeconds(0.75);
            if (!coveredByOtherScreen && !otherScreenHasFocus)
            {
                // variable time step but never less then 30 Hz
                World.Step(Math.Min((float)gameTime.ElapsedGameTime.TotalSeconds, (1f / 30f)));
                if (UseSecondStep)
                    World.Step(Math.Min((float)gameTime.ElapsedGameTime.TotalSeconds, (1f / 30f)));
                else
                    World.Step((float)(gameTime.ElapsedGameTime.TotalMilliseconds * 0.001));
            }
            else
            {

Archive Download the corresponding diff file

Page rendered in 0.67897s using 14 queries.