Hi all,
I created a custom projectile trajectory in blueprint, with the specific purpose of being able to render a preview of the trajectory.
So, I created a timeline at spawn, wich I use to feed a custom ballisitic equation (also feeding everything I may need like initial velocity, position, gravity and so on) and I use the result of this time-depending equation to set my projectile location at every update of the timeline. And everything works perfectly fine.
So, now I want a preview before I actually shoot. My idea was to use the very same equation (wich I turned into a function), but instead of feeding it with time, I’d use a float array, and a ForEachLoop, so my equation would receive values like 0; 0.1 ; 0.2; 0.3 etc … and give me the position of the projectile at this moments.
Well, it didn’t go so well, and my preview projectile doesn’t seem to feel any initial speed, and just draws the trajectory of a falling object.
Do you guys have any idea why this happen ? Is there something really wrong about my logic, or something I missed ?
If screens may help, I can add some.
Thank you in advance, It’s been two days now, and I may pretty soon bite my cat out of frustration.,