GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Get Angle Value

taj_cctaj_cc Posts: 10Member
edited November -1 in Working with GS (Mac)
I have one big circle on the seen, I am touching circle in different points. I want to get the angle value where I am touching in the circle. Can any one help me how can I get the angle value?

Comments

  • VoidedSkyVoidedSky Posts: 1,095Member
    go to expression editor:

    vectorToAngle(TouchX,TouchY)

    Hope this helps!
  • RHRH Posts: 1,079Member
    The angle of what though? From the centre of the circle along the horizontal? Vertical? From the origin?
  • gyroscopegyroscope I am here.Posts: 6,577Member, Sous Chef, PRO
    Hi RH, this should answer your question:

    http://en.wikipedia.org/wiki/Axis_angle

    Hee! (Despite my attempt at humour, you might well understand the maths there; I surely don't!)

    Basically, it's the angle made from the centre of the circle to the x,y loc of the touch point.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • taj_cctaj_cc Posts: 10Member
    RH said:
    The angle of what though? From the centre of the circle along the horizontal? Vertical? From the origin?

    centre of the circle
  • gyroscopegyroscope I am here.Posts: 6,577Member, Sous Chef, PRO
    There's an echo in here... ;-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

This discussion has been closed.