[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] rotate around point



To rotate around an arbitrary point,
1. subtract (vectorially) the center of rotation;
2. perform rotation (as if about the origin);
3. add the center of rotation.

Mark


On Mon, Aug 20, 2012 at 10:10 PM, Ricardo Franco
<ricardo.krieg@xxxxxxxxx> wrote:
> Hi, I need to rotate around a specific point.
> It's a person animation. So the arms should rotate over the shoulders'
> point.
> How to do that?
>
> --
> Ricardo Franco Andrade             @ricardokrieg
>
> ( Game | Desktop | Web ) Developer
>
> email: ricardo.krieg@xxxxxxxxx
> contact: +55 (86) 9958 9725
>              +55 (86) 9436 0830
> twitter: twitter.com/ricardokrieg
> facebooK: https://www.facebook.com/krieg.ricardo
> github: https://github.com/ricardokrieg
>



-- 
Mark Wexler
Laboratoire Psychologie de la Perception
CNRS - Université Paris Descartes
45, rue des Saints-Pères
75006 Paris, France
http://wexler.free.fr