I’m trying to make a scene where you can move a cannon and fire it. I want to display the trajectory of the cannon ball based on real physics equations. The only idea I had was to to procedurally generate a mesh but I haven’t had any luck.
Hello
ryanjon2040 did that [VIDEO] Drawing Projectile Trajectory - Blueprint Visual Scripting - Unreal Engine Forums
In hope it helps.
I was hoping to draw a curved line but the post doesn’t give any clue on how to do it.
Well its a bit hacky but, maybe you could fire an actual projectile, set it to invisible, have it fire again whenever the gun was rotated, and have the bullet be a blueprint with a ribbon emitter attached to it with an unlimited lifespan. Maybe the invisible bullet would destroy itself when you rotated the gun, and give it a really fast speed so it looks like the trail appears instantly.
That’s how i would go about doing it as well…at least for prototyping until you find a better solution. You can also set time dilation for that projectile to a higher value so that it draws the trajectory instantly instead of waiting for the projectile to travel at its normal speed.