1. #1
    Senior Member Follow User Gallery
    Join Date
    May 2007
    Location
    Raleigh NC
    Posts
    477

    Default Array in a circle - Math Question

    I am trying to array copies of a mesh in a circle. I can do that fine by finding the COS and SIN but I am running into an issue.

    Now I am pretty terrible at math and it's been years since I touched trig... so it may be a problem with my math. I need someone smarter than me too look at this. As I increase the number of copies the size of the circle increases. I want the size of the circle to stay the same.



    What I am doing is dividing the rotation (360) by the copies (12) to get the interior angle (30). Then I am finding the cos/sin and then multiplying by the radius (distance slider - 100). Then I move the mesh X then Y to that point. This is looped by the number of copies and to find the next point I am multiplying the interior angle by how many times it loops .

    I attached the script if anyone wants to look at it.

    Array.txt

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    8,746

    Default

    There's nothing wrong with your math. The circles get larger because you are using the same subtool each time, so the centre is offset.

    Array-rev.txt

  3. #3
    Senior Member Follow User Gallery
    Join Date
    May 2007
    Location
    Raleigh NC
    Posts
    477

    Default

    Oh! Ha! Look at that. That makes perfect sense.

    Thanks so much Marcus!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •