How to rotate a 2d moving image like a car?
조회 수: 1 (최근 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!