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"

Using UWorld::OverlapSingle/Multi or UWorld::SweepSingle

Hello,

I would like to use the function UWorld::OverlapSingle and need to rotate the box some how. There is a FQuad Rot argument available to use for a OverlapSingle/Multi or SweepSingle/Multi. Unfortunately this variable is not described.

  1. If I'm using a Box-Shape I would assume that Rot will rotate the box around the origin like to apply a normal rotation on an Actor.

  2. Using a Capsule I could first define the HalfHeight of the Shape and than rotate it to make a Capsule looking into e.g. X-Axis direction.

  3. Using Rot on a Sphere-Shape should take no effect.

Are my assumptions correct or can I see the Trace some how?

Product Version: UE 4.7
Tags:
more ▼

asked Jun 24 '15 at 08:48 AM in C++ Programming

avatar image

Dwarfmine
46 4 4 7

avatar image Pierdek Jun 25 '15 at 11:30 AM

Rot works fine in 4.7.

You can visualize how the trace looks doing something like this:

 static FName VehicleSweepTest = TEXT("VehicleSweep");
 
 FCollisionQueryParams QueryParams(VehicleSweepTest, false, this);
 QueryParams.AddIgnoredActor(this);
 QueryParams.bTraceAsyncScene = true;
 
 GetWorld()->DebugDrawTraceTag = VehicleSweepTest; //<-- this thing is crucial
 
 GetWorld()->SweepMulti(...);

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

0 answers: sort voted first
Be the first one to answer this question
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