Collision Events in Code

This is a stub - please add things that are missing! Here are some of the functions that get called on Collision in code: | | | | ------------------------ | ----------------------------------------...

Updated 8 months ago Edit Page Revisions

This is a stub - please add things that are missing!

Here are some of the functions that get called on Collision in code:

Function Name Description Parameters Base Class Tips
ReceiveHit Event when this actor bumps into a blocking object, or blocks another actor that bumps into it. class UPrimitiveComponent* MyComp, class AActor* Other, class UPrimitiveComponent* OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult& Hit Actor Both Actors must have their collision response set to Block for this to occur. Of the two actors, only those that also have Simulation Generates Hit Events = True will receive the event.
ReceiveActorBeginOverlap Event when an actor no longer overlaps another actor, and they have separated. class AActor* OtherActor Actor