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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

SphereOverlapActors Sphere positioning question

im trying to spawn an overlap sphere about 10 units in front of my third person character based on where I am aiming. It seems like the the sphere position is based off of world vector though. Im still getting familiar with the whole vector side of Unreal and I cant think of how to convert either the camera or my characters forward vector and rotation to a world vector location the sphereoverlap can use.

When i plug it in now, the sphere appears at the same location which is around to 1,1,1 because the local character rotation never goes much higher or lower than that.

Anyone know?

Product Version: UE 4.20
Tags:
more ▼

asked Aug 09 '18 at 08:22 PM in Blueprint Scripting

avatar image

Plzwork1234
64 4 5 9

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

2 answers: sort voted first

alt text

Make transform and you add 500 to X

untitled.jpg (147.9 kB)
more ▼

answered Aug 09 '18 at 10:26 PM

avatar image

Plzwork1234
64 4 5 9

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

You'd normally do it like this:

alt text

Get Forward Vector (direction vector), multiply it by distance and add it to your own location. This will produce a projected location along the direction vector at the specified distance (500 in this case)

capture.png (186.8 kB)
more ▼

answered Aug 09 '18 at 09:26 PM

avatar image

Everynone
13.7k 74 25 57

avatar image Plzwork1234 Aug 09 '18 at 10:25 PM

Thanks so much for the reply but I figured it actually.

(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