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 ignore initial penetration in line traces

I am implementing bullet penetration and for my character skeletal meshes I am running into the issue where the second+ ray cast returns blocking hit immediately because the trace finds it's penetrating the physics asset already.

To clarify, I am tracing to find a skeletal mesh w/ physics assets as my first blocker, I then use this impact + a small vector in the shot direction as the start of my second trace. Now this returns blocking immediately with bStartPenetrating to true. I can't simply add this Actor to ignored actors since I NEED to know multiple hits of a single actor (in this case, let's say hitting both his hands and head) but I wish to ignore the hit if it is an initial blocker/overlap.

using: FCollisionQueryParams QueryParams; QueryParams.bFindInitialOverlaps = false;

Has no effect either, the character mesh set to Block my weapon's trace channel and not overlap, which makes sense given the name of the bFindInitialOverlaps above, but there is seemingly no option to ignore initial penetration? which is what I need to let the trace pass through the element (eg. piece of it's leg that's a capsule in the physics asset) and continue tracing to find either a different primitive of the same physics asset OR a new actor entirely.

Cheers!

Tom

alt text

(green is impact location, purple is the start of the NEXT trace + 10 units offset in direction of the shot. You can see green and purple in the SAME location, meaning bStartPenetration must be TRUE which I am trying to filter out)

Product Version: UE 4.16
Tags:
more ▼

asked Jul 11 '17 at 11:37 PM in C++ Programming

avatar image

Tom Looman
469 35 88 55

(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