I am very new to UnReal. I’m curious to know if there is a common pattern for pair-wise collisions. For instance in this tutorial you learn how to create a SphereComponent to detect interactions with other objects via the “Hit” class.
Here is my basic scenario. I will have multiple agents moving about on their own initiative. I expect them to come with a certain distance of each other. When they do, they will greet, learn the others name, and move on. I know I can use the SphereComponent to detect when another agent is nearby. However, I still don’t know
- How to only check once for each pair. E.g., do Bill and Carmen make two interactions, one initiated from each.
- How does Bill get information from Carmen’s class. Something of the form Bill.addToKnownNames(Carmen.name), but I don’t have any examples of this.
I’m sure this is common. I would appreciate any and all help.