⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class FirearmRecoilEffect

    Inheritance
    Object
    MonoBehaviour
    FirearmRecoilEffect
    Implements
    IAdditiveTransform
    IMonoBehaviour
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: NeoFPS.ModularFirearms
    Assembly: NeoFPS.dll
    Syntax
    public class FirearmRecoilEffect : MonoBehaviour, IAdditiveTransform, IMonoBehaviour

    Properties

    bypassPositionMultiplier

    Declaration
    public bool bypassPositionMultiplier { get; }
    Property Value
    Type Description
    System.Boolean

    bypassRotationMultiplier

    Declaration
    public bool bypassRotationMultiplier { get; }
    Property Value
    Type Description
    System.Boolean

    currentJiggle

    Declaration
    public float currentJiggle { get; }
    Property Value
    Type Description
    System.Single

    currentPushBack

    Declaration
    public float currentPushBack { get; }
    Property Value
    Type Description
    System.Single

    currentRecoilAngle

    Declaration
    public Vector2 currentRecoilAngle { get; }
    Property Value
    Type Description
    Vector2

    position

    Declaration
    public Vector3 position { get; }
    Property Value
    Type Description
    Vector3

    rotation

    Declaration
    public Quaternion rotation { get; }
    Property Value
    Type Description
    Quaternion

    transformHandler

    Declaration
    public IAdditiveTransformHandler transformHandler { get; }
    Property Value
    Type Description
    IAdditiveTransformHandler

    Methods

    AddRecoil(Vector2, AnimationCurve, Single, Single, AnimationCurve, Single, AnimationCurve, Single)

    Declaration
    public void AddRecoil(Vector2 recoil, AnimationCurve angleCurve, float pushBack, float maxPushDistance, AnimationCurve pushCurve, float jiggle, AnimationCurve jiggleCurve, float duration)
    Parameters
    Type Name Description
    Vector2 recoil
    AnimationCurve angleCurve
    System.Single pushBack
    System.Single maxPushDistance
    AnimationCurve pushCurve
    System.Single jiggle
    AnimationCurve jiggleCurve
    System.Single duration

    Awake()

    Declaration
    protected void Awake()

    OnDisable()

    Declaration
    protected void OnDisable()

    OnEnable()

    Declaration
    protected void OnEnable()

    UpdateTransform()

    Declaration
    public void UpdateTransform()

    Implements

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