Sign in to follow this  
MohammadAhmed

Xna - Skinned animation problem!

Recommended Posts

MohammadAhmed    279

the prblem is that I copy the skinned Model sample of Microsoft and apply it on my own way " During to class arrangment " , then when I finish and run the program the class did not move at all , I rewrite the code again and still the same , I think may be my hardware is so fast !!!! I multiply the time by 35.0f :

 

        public void Update(GameTime gameTime)
        {
            Matrix world = Matrix.CreateScale(Scale) * Matrix.CreateFromYawPitchRoll(Rotat                 ion.Y, Rotation.X, Rotation.Z)
                * Matrix.CreateTranslation(Position);

            TimeSpan elapsedTime = TimeSpan.FromSeconds(gameTime.ElapsedGameTime.TotalSeco                  nds * 35.0f);

            Player.Update(elapsedTime, world);
        }

 

Now it's move but not forward , but backward ???????? so I am conufsed why this happen and why when I multiply the timer then Model animated?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this