iOS Question Rotating a circle on a circle path

tufanv

Expert
Licensed User
Longtime User
Hello,

I also need advice on another thing. Please see the pic below.


5xoqoz.jpg



I need to rotate a circle picture or a circle around a circle track conitnously. ( you can think of world turning around the sun on a track ) . What is the best and easiest way to do it ?

TY
 

tufanv

Expert
Licensed User
Longtime User
Is there any error?

you should use this way.

B4X:
 getcurrentrect(pnlcircle).Left ' forexemple

' or

dim r as rect= getcurrentrect(pnlcircle)
log(r.Left)

Yes, second part works perfect :

B4X:
dim r as rect= getcurrentrect(pnlcircle)
log(r.Left)

Thank you very much
 
Upvote 0
Top