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 make an arrow point to another actor?

Dumb question, but how would one make something like an arrow point at another actor in Blueprint?

Product Version: Not Selected
Tags:
more ▼

asked Jun 16 '14 at 04:46 AM in Blueprint Scripting

avatar image

GG04
126 8 12 16

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

2 answers: sort voted first

Hey GG04,

You can look into using the Find Look at Rotation node, that takes a Start location (your arrow) and your Target location (the object you are pointing at) and then returns the Rotation that your arrow needs in order to point at the Target.

Hope that helps!

-Steve

more ▼

answered Jun 16 '14 at 05:58 PM

avatar image

Steve Allison STAFF
4.3k 123 58 209

avatar image tngri Feb 08 '19 at 02:24 PM

Thanks, now how can I set its length to point exactly to the Target Location please ?

avatar image armadillo_mole May 13 '19 at 11:17 PM

Let's say A is the start location and B is the target location. If you subtract these two vectors ( B - A ) and feed the result to a length node you get the distance between the two points.

You can then multiply the arrow's scale X component by that distance you found. If the default arrow component is 1 meter long and the distance between the targets is 30 meters, you would set the X scale to 30. If the arrow is 1 cm long then you would set the X scale to 3000.

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

Use an RInterpTo node... there's a blog post on it : https://www.unrealengine.com/blog/the-subtle-magic-of-interpto

more ▼

answered Jun 16 '14 at 09:37 AM

avatar image

tomofnz
1.2k 46 47 89

(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