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"

Trace not finding destructible components consistently

I have a blueprint set up that sends a trace at a character utilizing destructable components. The components are on their own trace channel that is shared by nothing else. About 80% of the time the trace returns the general actor but not the destructible component (even though the component was clearly hit), preventing me from applying damagealt text alt text

Product Version: Not Selected
capture.png (148.5 kB)
capture2.png (76.8 kB)
more ▼

asked May 14 '14 at 11:34 PM in Blueprint Scripting

avatar image

46 6 10 14

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

1 answer: sort voted first

Try using a Single Sphere Trace instead of Line. Since lines are 2 dimensional it can be hard to see what is going on. You can make a very small sphere radius that should produce better results when trying to hit smaller components.

Alternatively, perhaps you can give each component a collision volume that is slightly bigger than the component and use this box to call damage on component hits? You could tweak its size to ensure hits are being called when projectiles clearly miss.

more ▼

answered May 14 '14 at 11:57 PM

avatar image

1.8k 131 68 110

avatar image zgjames May 15 '14 at 12:28 AM

Same deal, the sphere hits the component properly when you turn the debug line on but the output of the hit only has an actor, no destructible component (keep in mind this only occurs about 80% of the time seemingly at random)

avatar image Zeustiak May 15 '14 at 12:46 AM

You might change the collision type for the component asset to something more robust.

If that doesn't work, create some volumes that are slightly bigger than the destructible and pull your hits from there.

avatar image zgjames May 15 '14 at 01:48 AM

No luck still, It seems that there is a simplified collision box of some form set around the destructible component (even though everything is set to not use simplified collision). If a break a piece off of the destructible and then shoot in that spot the shot hits an invisible wall. Thanks for the help btw alt text

capture3.png (397.7 kB)
avatar image Zeustiak May 15 '14 at 02:24 AM

Hmm, I haven't dealt with the collisions for destructibles so I may not have the best advice. I know the system doesn't like concave collision so I am not sure how you update collision on something that has been partially destroyed and made concave.

Have you tried using Auto Convex Collision? It seems like you have a collision box that covers your entire asset so it doesn't update when destroyed. But the Auto Convex lets you have more "zones" in a collision box by increasing the hulls and vertices in the asset. If you increase the hulls you can see your collision box go from green to green/red/blue and seems to be sectored on the asset.

It might help. Not sure if one of it's zones would deactivate if a piece of the mess disappears. You may need to do something to tell it to update.

(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