I am using Vehicle c++ project template from UE4. I am trying detect collision between player vehicle which by default inherits from APawn and my custom AIBot which also inherits from APawn. I have tried to use UKismetSystemLibrary::SphereTraceMultiForObjects function but as I realize that this function can be used witch AActors only. Can someone can explain me or give any tips how can I detect such collision using C++.
All actors have a defined collision component (TSubobjectPtr<class UCapsuleComponent>), its likely to be called CollisionComponent or something like that, I don’t really have access to VS right now. Anyway you can either check for overlaps / hits on each tick and check the class of the actor being overlapped, or add a hit/overlap event notification.