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"

Overlap event firing on one object but not other

I have two objects: the character and a intractable object. The character has a capsule specifically for checking overlap with intractable objects. The intractable object is made of a mesh and a sphere collision volume. Both objects are created from blueprints that inherit from their respective C++ class.

This is a picture of the settings on the character's capsule checker: intractable checker

Here is the collision settings on the intractable object: intractable

Here is a code snippet of the creation of the volume and setting up the begin and end events for the checker volume:

     InteractableCapsule = ObjectInitializer.CreateDefaultSubobject<UCapsuleComponent>(this, TEXT("Interactable Collision"));
     InteractableCapsule->SetRelativeScale3D(FVector(2.1f, 2.1f, 2.1f));
     InteractableCapsule->OnComponentBeginOverlap.AddDynamic(this, &ADefaultCharacter::OnCapsuleOverlapBegin);
     InteractableCapsule->OnComponentEndOverlap.AddDynamic(this, &ADefaultCharacter::OnCapsuleOverlapEnd);

I can confirm the event is firing on the intractable object as it prints the test string I've added. On the character side, I have not been able to get any response, whatsoever. I am at a total loss for why this is the case.

Possibly related and also equally maddening: when placing the intractable in the level, the collision sphere snaps to a completely separate static mesh in the level, regardless of the collision being attached to the root of the object (the mesh). Just in case, here's a picture of that, as well- the one I've correct is on the left, the newly placed on is on the right, with the sphere collision poking out of the ground: weird collision

Any thoughts on why this would happen? There are so few steps, I have no idea where I could have possible messed this one up.

Product Version: UE 4.10
interact.png (27.2 kB)
weird collision.png (278.7 kB)
more ▼

asked Mar 05 '16 at 05:28 PM in C++ Programming

avatar image

180 9 9 12

avatar image KingCole32 Mar 06 '16 at 07:30 AM

Anyone? I'm totally stumped as to why this would be happening.

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

1 answer: sort voted first

Once again, something simple:

The delegate functions need to be declared with UFUNCTION in order to work. That was it. Hopefully this will save anyone else who has the same problem hours of stupid, senseless headache.

more ▼

answered Mar 06 '16 at 12:18 PM

avatar image

180 9 9 12

(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