Announcement

Collapse
No announcement yet.

Pie Menu/Inventory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pie Menu/Inventory

    Does anyone have an idea how to make this? More specifically one similar to this
    Click image for larger version

Name:	pie menu.jpg
Views:	1
Size:	64.0 KB
ID:	1204856
    I know this one is in the marketplace, but ive spent plenty of money there already.
    I have not found any tutorials.

    #2
    Use basic trigonometry to arrange symbols in a circle:

    alpha = (PI*2)/numOfItems

    x = sin(alpha*i)*radius;
    y = cos(alpha*i)*radius;

    The rest of it is Material that draws a colour in a certain angle with an outer and an inner circle given.

    Comment


      #3
      Originally posted by Raildex_ View Post
      Use basic trigonometry to arrange symbols in a circle:

      alpha = (PI*2)/numOfItems

      x = sin(alpha*i)*radius;
      y = cos(alpha*i)*radius;

      The rest of it is Material that draws a colour in a certain angle with an outer and an inner circle given.
      Ok so if i want the x and y cord of a certain piece, i fill in that equation
      alpha = (PI*2)/8
      alpha=.7853

      x=sin(.7852*?)*300
      y=cos(.7852*?)*300

      so what is I? also doesnt that just put them all in the same position? or is that where I comes in?
      Last edited by dka13; 01-02-2017, 01:20 PM.

      Comment


        #4
        You do it in a for loop:

        Code:
        for(int i  = 0; i < numItems ; ++i)
        {
          x= ...
          y= ...
        }

        Comment


          #5
          Unreal Engine 4 Proof of Concept - Pie Menu
          Youtube
          Twitch

          Comment

          Working...
          X