x

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"

How to display a projectile path?

Hi there, I am currently developing a project where my character is launched with a specific velocity in a faced direction (so all the location values they will travel through are attainable), but I would like the ability to draw this projectile path before the launch so the user can see the movement they will travel. Is there any way to draw a line/path of the movement before the character moves? Thanks

Product Version: UE 4.12
Tags:
more ▼

asked Jun 06 '16 at 07:40 PM in Blueprint Scripting

avatar image

DominikanRep
36 5 7 14

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I think this is accomplished in a number of ways and you have two challenges:

  1. getting the trajectory

  2. drawing a representation of it

Getting a trajectory could be handled by calculating the trajectory with some medium level Math:

https://en.wikipedia.org/wiki/Projectile_motion

Using this you can calculate a point at any time but assumes you have no drag/air resistance.

Alternatively i know some engines/games have used a 1-frame physics calculation to go ahead and simulate where their projectile will go. this is more accurate but more expensive and I think requires c++ if it is possible.

Once you have that settled you can move on to what you want it to look like which will then directly drive how you accomplish that look.

more ▼

answered Jun 06 '16 at 09:33 PM

avatar image

RimmyD
2.6k 98 15 96

(comments are locked)
10|2000 characters needed characters left
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