SGDE.Physics.PhysicsBaby.Update C# (CSharp) Method

Update() public method

Update the position and velocity of the PhysicsBaby.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current GameTime.
return void
        public void Update(GameTime gameTime)
        {
            mOwner.Translate(mVelocity.X, mVelocity.Y);

            mVelocity += mForces * (float)gameTime.ElapsedGameTime.TotalSeconds;
        }