Affine Sprite Rotation #56
Unanswered
michaelsarr
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Circle the origin around your new center. Here's some general math info: https://docs.godotengine.org/en/stable/tutorials/math/index.html |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm not sure if you've figured this out yet, but I needed to know this too.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was looking at
https://github.com/raspberrypi/pico-playground/blob/master/scanvideo/sprite/affine_transform.h
for some ideas about rotating sprites
I'm stumped at the moment about getting it rotate around its center and not the upper left pixel
any ideas?
IMG_6448.MOV
I think the sin and cos are correct.. this is how I made them
the picocomputer code is at
https://github.com/michaelsarr/pico6502_sprite_rotation
Beta Was this translation helpful? Give feedback.
All reactions