Triggerenter

Hello. I was watching a tutorial about a simple game and it uses trigger. This is the code that confuses me.

UFUNCTION()
  void TriggerEnter(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);

Now my question is, what are these arguments in that TriggerEnter function. Im just learning so dont mind this question…THANKS…

OtherActor - Actor that triggered the event

OtherComp - Component of “OtherActor” that triggered the event

OtherBodyIndex - Index number of actor that triggered and event if there is more then one in trigger area

bFromSweep - Is true, if actor that triggered the event was sweeping thru trigger area (Moving Physical Objects - Unreal Engine)

SweepResult - Structure containing all the collision data of object entering the trigger area, precise positional data and so on (FHitResult | Unreal Engine Documentation)

In UE4 terminology “Other” in event arguments means “something” that triggered the event

Im a beginner so just one last thing i wanna ask. Could you explain UPrimitiveComponent. I know a little bit about it but i dont have the exact info that lets me use it whenever i want.