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"

GetOverlappingActors Problem

Hi, I have some problems with Collision Detection using the GetOverlappingActors Node. Maybe I just dont really get what it is supposed to be doing (blueprint beginner with almost no coding experience) but let me try to explain what I want to do first:

I want to make a simple puzzle game with tiles which you can click to rotate them 90° on connected Edges. alt text

The basic functionality works but I would like to track which edges are connected to other tiles in order to only allow correct rotation when the player interacts with them.

So I created box collisions on each side of the tile in my blueprint and one for the tile itself, the later is also used to track if the player is standing on top of the tile which works like a charm (onBeginOverlap). alt text

For the collisions on the edges BeginOverlap does not work since they are already overlapping when the game starts so I thought I use the GetOverlappingActors node and look at how many actors it finds using a length node. This is triggered at game start and every time a tile is moved. alt text

Somehow this gives completely unexpected results, sometimes it works sometimes it does not. While testing with a single tile it worked for all 4 directions, now that I have multiple tiles in the level it only gives me false results, removing some makes it work for some but not for other tiles. I have no idea what I am doing wrong, it would be great if somebody would be able to help me. (Im open to different methods of solving the actual problem too) If further information's are needed to help me I would gladly share them.

Thank you for your time.

Product Version: UE 4.7
01.png (367.8 kB)
03.png (98.5 kB)
04.png (80.4 kB)
more ▼

asked May 15 '15 at 11:16 AM in Blueprint Scripting

avatar image

18 4 5 7

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

1 answer: sort voted first

I had to correctly set up the collision settings on my tiles. After setting them up it worked like it should.

more ▼

answered Jun 12 '15 at 01:31 AM

avatar image

18 4 5 7

(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