How to rotate a 2d moving image like a car?
2 次查看(过去 30 天)
显示 更早的评论
hello every one i am facing problem in rotating my car's image when i press a key the car just move upwards without any rotation because velocity change.
7 个评论
Walter Roberson
2013-11-27
Use the method I indicated in your duplicate of the question: create an hgtransform. http://www.mathworks.com/help/matlab/ref/makehgtform.html
采纳的回答
Image Analyst
2013-11-26
The image must remain rectangular with the edges aligned with your computer screen. So to rotate a car within that image, you're going to have to use imrotate().
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!