What OtherComp will receive in OnComponentHit function?

What OtherComp will receive or represent ?

void OnCompHit(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
1 Like

Where OtherActor will tell you the actor you hit, OtherComp will tell you the component of that actor you hit.

1 Like