Relative rotation on instanced static objects in array

Hello !

I have a question regarding instanced static objects in an array. I tryed hours now to figure out how to rotate or translate every instance in relation to the instance before…i want it to behave like this:

340310-ezgifcom-gif-maker-3.gif

this is my poor aproach:

Perhaps someone can point me in the right direction.

Thank you :slight_smile:

Hello! In fact the question can be reformulated like this:

  • you have zero rotation for first object and some rot rotation for last object
  • if you have N objects you can then calc step as rot/(N-1)

But of course, this is true only if you have got equal step

This basically works, after a fashion, but rotates the outer cubes too much, and only in Z. I will come back later to fix it…

340328-hypercube.gif

Sorted:

340334-hypercube2.gif

340335-screenshot-3.png

Final version…

Thank you so much. I learned a bunch. YOu are AWSOME. made my day.

You’re welcome. Finally got there, the last one always maintains the outer size correctly…

340340-hypercube3.gif