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"

Confusion with child actor collision handling


I am having a difficult time getting the Hit event or on or ActorBeginOverlap event to happen on some actors that I am spawning into the map. I have created a baseCube class that 7 types of cubes inherit from.

alt text

I created a collision box in the base cube. I use these cubes in a different actor called tetromino. (the main game mechanic of this game is tetris) So there are four of these cubes that make up the different tetromino pieces all different actors that inherit from a class called baseTetromino. here are some images.

alt text

I use a boolean called placed? that will stop the piece from moving if it is set to true. I set placed? to true for the Hit and ActorBeginOverlap events.

alt text

I have set the generateOverlap property to true in both the baseCube and BaseTetromino classes.

alt text

alt text

but when they collide they continue to just fall through each other. I believe I want to use the Hit event as I just want the actor to stop falling when it lands on it. I may be wrong though. Either way I am having trouble. Do i need to make another collision box for each tetrtis piece as well? I fell like the fact I only am using a collision box on the base Cube is causing a problem. I have physics simulation turned off as I do not want a reaction just for them to simply stop moving. Feel free to comment if i need to post more information. This is all done in blueprints.

Product Version: UE 4.17
cubetypes.png (49.1 kB)
pieces.png (23.0 kB)
hit-event.png (289.5 kB)
basetetro.png (498.8 kB)
basecube.png (237.4 kB)
more ▼

asked Sep 12 '17 at 12:53 AM in Using UE4

avatar image

18 1 2 7

avatar image AJenness Sep 12 '17 at 12:54 AM

A better title would be. How do you use Hit event for an actor that used 4 actors each with their own collision box.

avatar image AJenness Sep 12 '17 at 05:13 PM

I realize now that I do not even need a collision box as I can just apply collision handling to the mesh by itself. But the same problem continues to happen. No collision is being detected when the pieces overlap

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

0 answers: sort voted first
Be the first one to answer this question
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