⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    NearestObjectWithTagTracker MonoBehaviour

    Overview

    The NearestObjectWithTagTracker behaviour is a guided projectile tracker that checks its vicinity for objects with the correct layer and tag, then tracks the closest one.

    Inspector

    NearestObjectWithTagTracker

    Properties

    Name Type Description
    Detection Tag String The object tag to home in on.
    Detection Layers LayerMask The layers to check for colliders on.
    Detection Range Float The max distance for targets to home in on.
    Detection Counter Float The time between searching for targets.

    See Also

    Modular Firearms

    Hitscan vs Projectiles

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX