🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

2D Objects Deforming

Started by
1 comment, last by jechternach 24 years, 7 months ago
For a little memory and processor overhead a simple solution would be to store a matrix with the object and rotate/translate that each frame, then use the final matrix on the original object but don't overwrite it, instead, overwrite a local copy of each polygon. So the original object remains untouched.
Advertisement
Hi. I am just getting started in game/graphic programming. I've been fooling around with 2d vector graphics and have run into a small problem. After many successive rotations of an object it gets slighlty deformed. I think this has something to do with loss of precision. Anyone have any tips? Thanks for your help.

P.S. I am transforming the object using matrices.

That did the trick. Thanks.

This topic is closed to new replies.

Advertisement