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"

Line trace to get static mesh instance?

I've been able to get hit results against individual instances of an Instanced Static Mesh Component, but I'm having trouble bridging the gap which identifies an instance with both it's index and it's transform from the hit results. How would I need to set up my blueprint in order to distinguish which instance has been hit?

Here's a video showing my current setup, and what it's doing: https://youtu.be/5i-LsTTHiHI

Product Version: UE 4.8
more ▼

asked Aug 06 '15 at 03:06 PM in Blueprint Scripting

avatar image

260 30 40 51

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

1 answer: sort voted first

Hi Michael,

When you break the Hit Result around 1:52, you can see there's something called Hit Item. For InstancedStaticMeshes that returns the index of the instance that was hit. That should be much easier than trying to find it based on the transform!

Version 4.9 adds some more blueprint functionality to allow you to find instances overlapping spheres, and also to allow you to blueprint the component class used by the foliage tool.

Cheers Jack

more ▼

answered Aug 07 '15 at 09:33 AM

avatar image

1.3k 37 11 48

avatar image MaxPower42 Jun 30 '18 at 01:51 PM

What about simulation-based collision events? Any chance to get the Item ID for those?

(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