eloq Posted June 6, 2009 Share Posted June 6, 2009 Hi all, need some help here.. i need to make a semi circle and have a needle move north to south or vice versa in a set of conditions. im not sure how to make the needle move along the circumference from the center of the circle. thanks a lot Link to comment Share on other sites More sharing options...
0 ViZioN Posted June 7, 2009 Share Posted June 7, 2009 Can you not just create a few functions to draw the needle in a different position? If you're calling it often enough it would look like its moving fluidly. I've never done anything like this, just an idea :) Link to comment Share on other sites More sharing options...
0 chrismaddern Posted June 7, 2009 Share Posted June 7, 2009 Okay so approach wise. - The bottom point of the needle line is fixed - the centre of the bottom of the semi-circle. - The angle of the needle needs to change between 2 degrees from horizontal facing to the left, to 178 degrees - Using something like http://www.codeguru.com/cpp/g-m/bitmap/spe...ticle.php/c1743 you could get a needle image and rotate it. You would likely have to do some movement calculation on the bottom to make sure it's still centre-aligned - Definitely have a function for doing it so that you can impliment over-shooting and coming back in that cute way needles do if you want to, and then it will automatically apply for all movements. Chris Link to comment Share on other sites More sharing options...
Question
eloq
Hi all, need some help here..
i need to make a semi circle
and have a needle move north to south or vice versa
in a set of conditions.
im not sure how to make the needle move along the circumference from the center
of the circle.
thanks a lot
Link to comment
Share on other sites
2 answers to this question
Recommended Posts