How to rotate a 2d moving image like a car?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muneef
le 26 Nov 2013
Commenté : Walter Roberson
le 27 Nov 2013
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 commentaires
Walter Roberson
le 27 Nov 2013
Use the method I indicated in your duplicate of the question: create an hgtransform. http://www.mathworks.com/help/matlab/ref/makehgtform.html
Réponse acceptée
Image Analyst
le 26 Nov 2013
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().
4 commentaires
Plus de réponses (1)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!