How to rotate a 2d moving image like a car?
3 ビュー (過去 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!