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 sweep by scaling a sphere?

I'm curious how to use SweepSingleByChannel. I see that it has a start and end vector, and a collision shape. I'm guessing it takes the collision shape and moves it between the start and end vector. For my purposes all I really need to do is have the sphere shape scale from zero to a designated size, this would determine if anything is within the radius of the sphere and return that. But when I just use a start location for both start and end, and set the sphere to the size I want I don't get a return on it.

Product Version: UE 4.13
more ▼

asked Sep 29 '16 at 07:49 PM in C++ Programming

avatar image

961 139 149 387

avatar image pulp_user Dec 14 '16 at 03:39 PM

Unfortunately i cannot answer your question, but I have a similar one. I am looking for the exact same thing as you, so that I can have usefull Vectors, when a actor using physics is overlapping with a sphere. The event doesn't yield usefull data, as the moving actor does not use sweep but rather physics itsself. Do you know some way to get usefull data out of that overlap event? Or maybe have the moving actor use sweep, despite being moved by the physics simulation?

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

1 answer: sort voted first

try this video here, it's Russian but you can copy some code: https://www.youtube.com/watch?v=Qe2Zjt40d4U

more ▼

answered Jul 16 '17 at 12:49 PM

avatar image

6 1 3 7

(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