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"

Trigger event when actor (mesh) is fully inside collision box

Ok, I have a problem, On Begin Overlap triggers event when actor (mesh) starts to overlap Trigger Box, but I need it to check if actor (mesh) is fully inside box (overlapping), so as whole mesh, and then trigger event. Any way to to that?

Product Version: UE 4.11
Tags:
more ▼

asked Jun 03 '16 at 06:27 AM in Blueprint Scripting

avatar image

phoenix[illusion]
118 8 11 15

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

1 answer: sort voted first

you would need to set up in the tick even a boolean to act as a "gate", so that the begin overlap, will enable the gate/boolean, and continue to check the trigger box, and check to see if the encompassing "box" of the actor is fully enclosed by the other box. Then you can also use End overlap, to disarm the boolean/gate so that all the checking stops, when the actor is totally outside the box. There are other things you can do of course, to reduce the overhead, but that is the general idea you will need.

Jay

IceWare Inc.

IwSpline

more ▼

answered Jun 03 '16 at 07:05 AM

avatar image

jayice
1.4k 41 28 56

avatar image phoenix[illusion] Jun 03 '16 at 07:26 AM

Thanks man, i get the idea, but which node to use so i can check to see if the encompassing "box" of the actor is fully enclosed by the other box? That is what conserns me the most

avatar image jayice Jun 03 '16 at 08:15 AM

Been a long time since I looked at this, as I got so irritated with things like this, I just started putting nodes into IwBpLib, to get what was needed.

But,

It looks like, you will wish to use something along these lines.

BoxOverlapActors, should be able to give you all actors that are overlapping (even though you should already have that from the OverLap Begin, but if you do subsequent queries, this could be useful)

Now once you have the actor, use

Get Root Component (it will be a scene component coming back, but that's fine).

Then

Get Component Bounds, now this is where you get the "extents" in the 3 dimensions of the "box" enclosing the actor, and then can do the compares to see if one box, is enclosed by another.

Jay

IceWare Inc.

IwSpline

(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