Rotate+Align object based on position and direction of sub objects
(My last post vanished - apologies if this has come through twice....)
I don't usually have too much trouble with this sort of thing, but I've spent so much time trying to nut this out. I feel much further away from the solution than when I started.
I'm trying to rotate, position, and align Actors based on components within the Actor.
Top of image = before, lower = after.
I know the process is essentially:
Does anyone have any straightforward approaches or solutions to this kind of scenario?
I suspect I'm missing something blatantly obvious, as something like this should be reasonably trivial with Quaternions...
Step2 is trivial, that's OK. I suspect I'm just not grasping or understanding part of the approach to "external" translations such as Step 1.
asked Mar 28 '16 at 11:03 AM in C++ Programming
After coming back to the problem fresh, I realised I was probably over complicating things.
I'm sure there is a better and more efficient way of doing this, but for the time being this has worked:
Will definitely revisit this once my understanding of how this sort of thing is handled in UE4 is better.
hey you can use so called group behaviors the one you looking for I believe is Alignment, there is more Separation Cohesion or Flocking to name just a few. here a pseudo code for alignment
by combining this with Separation behavior you can achieve what you want and much more
answered Jul 02 '16 at 02:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here