Clock Hand - mouse movable

Topics: User Forum
Sep 21, 2012 at 8:52 AM
Edited Sep 21, 2012 at 8:59 AM


I'm VERY new to using Farseer.

I'm trying to make a clock, where the user can click on the hand, and move it around the clock.  I've managed to set the body drawing to have a location for the rotateTransform, and then I can calculate the angle of the mouseposition, and adjust the visual accordingly.  BUT, my problem is that the AABB doesn't see this change, so when I want to click on the hand again, I have to click on the location at 12 o'clock, even though the hand is now pointing at 5 o'clock.

I have a feeling that I'm not obeying the farseer physics laws.

Oh, and I'm doing this in WPF, so I'm using Farseer version 2.1.3 as that's the newest one I could find with WPF and samples.

Can anyone help me with this?

Thanks for your help