The Collision Target Tracker is an alternative TargetTracker that uses collision events, rather than trigger colliders. Where the Target Tracker will return a list of targets in range, this special tracker returns a list of targets which are currently colliding with the game object. This is handy when you want to deliver information when something bounces off another object. Collision Target Trackers do not use a Perimeter to detect targets. Instead, these use the collider on the object they are attached to. One advantage this offers is the ability to use compound collider setups. The results of the component is a simple list of Target structs for use by other components, such as the FireController. This section will familiarize you with the Editor interface and options so you can get started right away. More detail on how this system is implemented is provided in the CollisionTargetTracker Code Reference section. ![]()
|
Documentation >