Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Arc Length using Predict Projectile Path

Hey Guys,

Is there a way to calculate the length of the arc of a projectile. Not distance to the destination, but the actual path. I'm using the Predict Projectile Path node. Any Ideas?

Product Version: UE 4.20
more ▼

asked Dec 17 '18 at 10:40 PM in Blueprint Scripting

avatar image

139 14 21 30

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

So what you want is to use the Predict Projectile Path (Advanced) instead, as the basic one only returns the last point.

Here's my setup for the prediction. Notice how I lowered the Sim Frequency to 10, as this can get very intensive.

alt text

Then, you can use each sim point to calculate the distance from each one to the next.

alt text

I added a "Is Valid Index" as the last iteration will try to get the location from an index one over the last element of the array.

Then, on Complete, you have your arc distance.

If you're doing this outside a function, notice how I'm setting Path Distance to 0 at the start of the operation. (1st image)

1.png (241.5 kB)
2.png (187.1 kB)
more ▼

answered Dec 17 '18 at 11:52 PM

avatar image

1.7k 8 4 8

avatar image Abeysaurus Dec 18 '18 at 10:31 AM

Thanks a ton! this was exactly what I was looking for! I was using the Advanced node too, but didn't think of using the array output

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question