⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    DrunkMissileMotor MonoBehaviour

    Overview

    The DrunkMissileMotor behaviour is added to a guided projectile to make it follow an erratic path towards its target.

    Inspector

    DrunkMissileMotor

    Properties

    Name Type Description
    Turn Rate Float The turn rate of the projectile (degrees per second).
    Turn Grow Rate Float An increase to the turn rate based on elapsed time in flight (base turn rate + turn grow rate * elapsed time).
    Min Interval Float The minimum amount of time between tracking ticks (when the projectile updates its target location).
    Max Interval Float The maximum amount of time between tracking ticks (when the projectile updates its target location).
    Max Tracking Angle Float The maximum angle off the forwards direction that the tracker can swivel to look at the target each tick.
    Max Deviation Float The maximum deviation from the tracker angle that the projectile will steer to add the drunken effect.
    Accurate Distance Float The distance from the target below which the projectile will switch to a more consistent tracking (reduces projectiles overshooting).
    Vary Speed Boolean Should the projectile's speed vary with occasional boosts.
    Speed Boost Float The target boost speed (added to the base speed of the projectile when fired).
    Max Boost Time Float The maximum amount of time a boost will last.
    Max Slow Time Float The maximum amount of time between boosts.
    Acceleration Damping Float The damping when accelerating up to boost speed.
    Deceleration Damping Float The damping when decelerating from boost back down to base speed.

    See Also

    Modular Firearms

    Hitscan vs Projectiles

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