Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • rotate gameObjects around another gameObject

    • 1
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 724
    Answer it

    I have 19 circles in a big circle , I need to write this algorithm

    "in case of clicking on a centralized circle (the around circles rotate around it)"

    not only rotating (about the around circles - the circle should equal/assigned to it`s following circle)

    alt text

 1 Answer(s)

  • For the above mentioned problem what we can do is calculate two distance from centralized object .One that is nearest to that object and another that is far from that object. Now we can maintain two arrays where we kept all those objects with the similar distances .One which have small distance and another which have comparatively large distance.As now we have two arrays containing all together containing 18 objects and there respective position as well.Now start swapping the position from first array element to the one that is next in the array list. In both the arrays differently. Hope this work. Thank You

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: