⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class MotionController

    Inheritance
    Object
    MonoBehaviour
    MotionController
    Implements
    IMotionController
    ICharacterStepTracker
    INeoSerializableComponent
    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.CharacterMotion
    Assembly: NeoFPS.dll
    Syntax
    public class MotionController : MonoBehaviour, IMotionController, ICharacterStepTracker, INeoSerializableComponent

    Properties

    aimController

    Declaration
    public IAimController aimController { get; }
    Property Value
    Type Description
    IAimController

    bodyAnimator

    Declaration
    public Animator bodyAnimator { get; }
    Property Value
    Type Description
    Animator

    characterController

    Declaration
    public INeoCharacterController characterController { get; }
    Property Value
    Type Description
    INeoCharacterController

    currentHeight

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

    currentHeightNormalised

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

    currentState

    Declaration
    public MotionGraphState currentState { get; }
    Property Value
    Type Description
    MotionGraphState

    groundAcrossSlopeVector

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

    groundDownSlopeVector

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

    groundSlopeAngle

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

    inputMoveDirection

    Declaration
    public Vector2 inputMoveDirection { get; set; }
    Property Value
    Type Description
    Vector2

    inputMoveScale

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

    isLocal

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

    localTransform

    Declaration
    public Transform localTransform { get; }
    Property Value
    Type Description
    Transform

    maxStepRate

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

    motionGraph

    Declaration
    public MotionGraphContainer motionGraph { get; }
    Property Value
    Type Description
    MotionGraphContainer

    rootMotionDamping

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

    rootMotionHandler

    Declaration
    public IRootMotionHandler rootMotionHandler { get; }
    Property Value
    Type Description
    IRootMotionHandler

    rootMotionPositionMultiplier

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

    rootMotionRotationMultiplier

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

    rootMotionStrength

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

    smoothedStepRate

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

    stepCounter

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

    strideLength

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

    Methods

    Awake()

    Declaration
    protected virtual void Awake()

    ChangeStandingHeight(Single)

    Declaration
    public void ChangeStandingHeight(float height)
    Parameters
    Type Name Description
    System.Single height

    CheckIsHeightMultiplierRestricted(Single)

    Declaration
    public bool CheckIsHeightMultiplierRestricted(float multiplier)
    Parameters
    Type Name Description
    System.Single multiplier
    Returns
    Type Description
    System.Boolean

    GetHeightMultiplier()

    Declaration
    public float GetHeightMultiplier()
    Returns
    Type Description
    System.Single

    ManualInitialise(Boolean)

    Declaration
    public void ManualInitialise(bool local)
    Parameters
    Type Name Description
    System.Boolean local

    OnDestroy()

    Declaration
    protected void OnDestroy()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    Declaration
    public void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
    Parameters
    Type Name Description
    INeoDeserializer reader
    NeoSerializedGameObject nsgo

    SetHeightMultiplier(Single, Single, CharacterResizePoint)

    Declaration
    public void SetHeightMultiplier(float multiplier, float duration, CharacterResizePoint point = CharacterResizePoint.Automatic)
    Parameters
    Type Name Description
    System.Single multiplier
    System.Single duration
    CharacterResizePoint point

    SetRootMotionStrength(Single, Single)

    Declaration
    public void SetRootMotionStrength(float strength, float blendTime)
    Parameters
    Type Name Description
    System.Single strength
    System.Single blendTime

    SetWholeStep()

    Declaration
    public void SetWholeStep()

    Start()

    Declaration
    protected virtual void Start()

    Update()

    Declaration
    protected void Update()

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Declaration
    public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
    Parameters
    Type Name Description
    INeoSerializer writer
    NeoSerializedGameObject nsgo
    SaveMode saveMode

    Events

    onBodyImpact

    Declaration
    public event UnityAction<Vector3> onBodyImpact
    Event Type
    Type Description
    UnityAction<Vector3>

    onCurrentStateChanged

    Declaration
    public event UnityAction onCurrentStateChanged
    Event Type
    Type Description
    UnityAction

    onDestroy

    Declaration
    public event MotionController.OnDestroyDelegate onDestroy
    Event Type
    Type Description
    MotionController.OnDestroyDelegate

    onGroundImpact

    Declaration
    public event UnityAction<Vector3> onGroundImpact
    Event Type
    Type Description
    UnityAction<Vector3>

    onHeadImpact

    Declaration
    public event UnityAction<Vector3> onHeadImpact
    Event Type
    Type Description
    UnityAction<Vector3>

    onStep

    Declaration
    public event UnityAction onStep
    Event Type
    Type Description
    UnityAction

    onTick

    Declaration
    public event MotionController.OnTickDelegate onTick
    Event Type
    Type Description
    MotionController.OnTickDelegate

    Implements

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