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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Guys, is there a way of detecting these overlaping decals so i can delete them?

How would i alt textdo that?

Product Version: UE 4.21
help.jpg (45.7 kB)
more ▼

asked Jan 13 '19 at 02:58 PM in Blueprint Scripting

avatar image

8 1 4

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

1 answer: sort voted first

How about not creating the decals in the first place? In the gun you probably know where the last bullet hit. You can maintain a list of last N hit positions. Before spawning a decal you can go through the list and if the current hit has at least M existing hits "nearby" (each closer than D units) then you don't spawn it. With some quick dust particle system indicating the impact each hole-clump should look fine.

Of course this is just the base idea, you'll probably need to store hit normals too to avoid false positives near corners, you can also have finer control over the spawning by calculating a spawn chance based on neighbour distances. And obviously this method would be less helpful if multiple guns fire at the same point but I don't know if that's an actual use case.

more ▼

answered Jan 13 '19 at 03:23 PM

avatar image

1.6k 79 94 145

avatar image ken09block123 Jan 13 '19 at 03:33 PM

I have never thouth of that! great idea! As for the different guns, maybe i can store this array variable somewhereelse , maybe in the player him self so when i need this information i just cast to him so i can access it. Really great idea, thank you!

(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