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"

Remove Instanced Static Mesh problem (cutting grass system)

Following this tutorial, I can't seem to remove instance grass using my "armCollider" in my character_BP, only with the Capsule Component.

I checked all the collisions and everything is detected (the grass has an ' object channel' named "foliage", which is set to be overlapped).

Here is a video showing the problem.

This is the setup: alt text

I also discovered other things:

-If I print the Other Body Index with the CapsuleComponent, the numbers are all different; but with the armCollider it is always -1.

-If I print the 'return value' (bool) from the "Remove Instance" node, for the CapsuleComponent it prints "true"; and for the armCollider it prints "false".

I don't know whats going on :(

Product Version: UE 4.21
screenshot-1.jpg (216.6 kB)
more ▼

asked Feb 15 '19 at 08:19 PM in Blueprint Scripting

avatar image

13 1 3

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Make sure that "Generate Overlap Events" is enabled for your armComponent.


Jonathan Lambert

more ▼

answered Feb 15 '19 at 08:36 PM

avatar image

21 1 1

avatar image Klausbdl Feb 15 '19 at 08:47 PM

It is, that's how the armCollider is detecting the grass and showing "-1" when I print the Body Index.

avatar image Jon.Lambert Feb 15 '19 at 09:06 PM

Is the cast successful?

avatar image Klausbdl Feb 15 '19 at 09:22 PM

Yes it is. I just tried using a ball with physics enabled and it wont work either. -1 on body index. alt text alt text

screenshot-2.jpg (38.5 kB)
screenshot-3.jpg (64.6 kB)
avatar image Jon.Lambert Feb 15 '19 at 09:50 PM

Try changing the armCollider from an object type of WorldStatic to Pawn or World Dynamic.

avatar image Klausbdl Feb 15 '19 at 09:54 PM

I did and it didn't work. I tested all kinds of collision and all of them does get detected but the instances wont be removed.

(comments are locked)
10|2000 characters needed characters left
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