⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    WeaponMomentumSway MonoBehaviour

    Overview

    The WeaponMomentumSway behaviour is an alternative to the WeaponAimAmplifier behaviour and moves instead of rotates the weapon. This makes it more suitable to weapons that are set to use the gun transform for the shooting direction as the weapon will stilll be pointing forwards as it moves.

    Inspector

    WeaponMomentumSway

    Properties

    Name Type Description
    Horizontal Multiplier Float The multiplier for the position offset side to side.
    Vertical Multiplier Float The multiplier for the position offset up and down.
    Sensitivity Float How sensitive the sway is to camera rotation. Higher sensitivity means the sway approaches its peak with slower rotations
    Damping Time Float Approximately the time it will take to reach the target rotation. A smaller value will reach the target faster.

    See Also

    Additive Transforms

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