What's the best way to populate a particle system (draw projectile trajectory)?

Hey guys i’m confused and need help to render a trajectory.

First take into account i’m a programmer and not an artist. :slight_smile:

Context : I work on a third person game where the player have the ability to throw stuff. Also we won’t have air resistance, wind, bounce or other stuffs. Just the classical parabola trajectory.

My artists teammate ask me to find a way to draw the trajectory of the projectile / object.

i’m stuck at 2 important points right now.

1rst : I use the basic physic function y = tan (angle) * X - ((G / (2 Vo cos(angle))^2) * X^2)

The angle is the pitch

G is gravity

Vo is initial speed in M/S

I seek in the engine to find out what “function” it use to calculate trajectory if i dont take into account mass, friction and other stuff… but the result is not really great at the moment.

2nd Problem : I don’t know how to populate a particle system properly. For example, each 0.3 seconds i would send position datas to the particle.

I know there is module to control partcle system but i don’t know if there’s one that could be usefull for me.

Also is there a better solution to render a trajectory ?

I’m open to any propositions or ideas.

If you need more infos just says it.

Thanks

gamer08

I also need this exact thing! Staff??

This solved all my issues in creating something like what you require: