This is a general question so there really isn’t any code to add.
I have a number of objects that travel along a terrain. These are primitive cylinders that are my game objects/tokens/units. I need to have each unit have both a combat radius/distance and a detection radius/distance. These are all NavMeshAgents.
Combat distance/radius: This is equal to touch…if it touches an enemy, there is combat (I can code this with a collider, no problem).
Detection distance/radius: This goes out a ways…if an enemy moves within a certain distance of a friendly unit then it “appears” visible to the friendly unit (again, no problem, I can code this with a collider).
HERE’s the PROBLEM! I don’t know how to add them BOTH to the same friendly unit. I’ve been doing some research on how to add two colliders to the same object that each has different functions. I’m trying different combinations but I haven’t found anything that works yet. Do I add another object to the main object (as in a parent/child) or do I add a second collider to the same object?
I can’t really find anything on point (you don’t need to do my research for me) but I need a starting point where I might find a solution to my problem.
Thanks in advance.