How to report Collisions in C++?

I can’t seem to found out about how to program collisions as the documentation is still very WIP? If i want to trigger code when a collision occurs, how do i go about doing this?

Thankyou.

I just need to know how to use the events, like is it a function?

Even if docs been not WIP i suspect they would not told you how to do that. Collisions are calculated and notified from components level, function used by it are contained in UPrimitiveComponent class, so study code of this class and see how it works:

https://github.com/EpicGames/UnrealEngine/blob/69b5693c869697b828e1f2c24004ff1481b5fb98/Engine/Source/Runtime/Engine/Private/PrimitiveComponent.cpp

Best sarting point are event delegates like OnComponentBeginOverlap, bu just broadcasting that delegate by yourself might be not enouth as it might avoid crucial code that might be needed for proper functioning

I’m not sure I understand what you’re trying to do. There should be events for being and end overlap as well as hit. There is even a special one for damage if that’s what you’re trying to do. I’m assuming you found these:

https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Events/index.html#eventhit

I have some pretty robust collision stuff in my C++ project. We are doing melee combat that accounts for individual body parts as well as weapon collision for blocking and I found most of what I needed on those two pages. I’m guessing you’re just overlooking something. Can you provide an example of what you’re trying to do?