Hi all,
I have a piece of blueprint code that I’m using to rotate an object array around a cube in +/-90 degree increments. A For Each Loop takes my object array and transforms each object into x and y values and then plugs the x and y values into a trig formula to give me 90 degree rotation. I’m currently plugging that value into a set world location block at the end of the for each loop.
This all works well for moving my object array but I’m wondering if its possible to use a lerp or vinterp block to have a smooth transition to my new vector. I’ve tried storing the start vector into a variable at the beginning of the for each loop and then use the sum of the trig formula as the second point in a Lerp or Vinterp Node but this gives poor results. I’m not sure how to use a lerp or vinterp inside this for each loop or if its even possible.
Here is an example of my current blueprint for +90 degree rotation.
Thank you for any advice on the subject! This project is my first attempt at programming, so my apologizes if its a dumb question.
Matt