Interpolating between 2 FVectors, so confused...
I'm calculating a movement vector, where magnitude is used for the velocity in the frame and the units for direction, using various effects like input, gravity etc (doing it from scratch in Pawn).
I'm stuck on calculating an FVector that is somewhere between 2 existing FVectors. I have used lerp and such in blueprints, but I know those use rotators. So is that the same process in c++? Do I lerp, having to deconstruct the FVectors into FRotators (I believe this uses unit vectors? maybe a conversion to degrees from there?), average the original FVectors lengths and reapply the magnitude to the result of the lerp (assuming it's a unit vector again)?
Or is there a more direct way to lerp using the FVectors directly?
asked Apr 24 '15 at 07:08 PM in C++ Programming
Im not sure what you're asking but if you want to lerp between 2 Vectors or 2 Rotators this is the simplest way as i know:
By the way everything is identical to the blueprint names so it should be easy to port your bps to c++.
Follow this question
Once you sign in you will be able to subscribe for any updates here