How to rotate a 2d moving image like a car?
古いコメントを表示
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 件のコメント
Image Analyst
2013 年 11 月 26 日
編集済み: Image Analyst
2013 年 11 月 26 日
How or why is the image moving? Are you repeatedly calling set(gca, 'Position')??? Why is the velocity changing? Is the speed of the car within a frame of video (and so the video image is staying put on your screen), or the speed that your image is moving across your GUI (if the image display is moving across your computer screen)? I don't know exactly what is moving - the car in the image, or the image itself. It's very confusing so can you clarify?
Muneef
2013 年 11 月 26 日
Muneef
2013 年 11 月 26 日
Muneef
2013 年 11 月 26 日
Walter Roberson
2013 年 11 月 26 日
You duplicated the question at http://www.mathworks.co.uk/matlabcentral/answers/107568-how-to-rotate-image-when-its-handle-is-not-a-matrix :(
I answered there before seeing this question. The answer I gave is different than the approaches here.
Muneef
2013 年 11 月 27 日
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
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!