Search Results for

    Show / Hide Table of Contents

    Class MovementController

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    MovementController
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.destroyCancellationToken
    MonoBehaviour.useGUILayout
    MonoBehaviour.didStart
    MonoBehaviour.didAwake
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent<T>(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(bool)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(bool)
    Component.GetComponentsInChildren<T>(bool, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type, bool)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>(bool)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(bool)
    Component.GetComponentsInParent<T>(bool, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(string)
    Component.CompareTag(TagHandle)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: LobsterFramework
    Assembly: LobsterFramework.dll
    Syntax
    [RequireComponent(typeof(Rigidbody2D))]
    public class MovementController : MonoBehaviour

    Fields

    | Improve this Doc View Source

    OnMovementBlocked

    Event that occurs when movement status is changed

    Declaration
    public Action<bool> OnMovementBlocked
    Field Value
    Type Description
    Action<bool>
    | Improve this Doc View Source

    moveSpeedModifier

    Modifies movespeed, base value is 1

    Declaration
    public readonly FloatProduct moveSpeedModifier
    Field Value
    Type Description
    FloatProduct
    | Improve this Doc View Source

    movementLock

    Manages movement blocking and unblocking. Add true values to block movement, remove all true values to unblock.

    Declaration
    public readonly OrValue movementLock
    Field Value
    Type Description
    OrValue
    | Improve this Doc View Source

    rotateSpeedModifier

    Modifies rotate speed, base value is 1

    Declaration
    public readonly FloatProduct rotateSpeedModifier
    Field Value
    Type Description
    FloatProduct

    Properties

    | Improve this Doc View Source

    MovementBlocked

    Declaration
    public bool MovementBlocked { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    RigidBody

    Declaration
    public Rigidbody2D RigidBody { get; }
    Property Value
    Type Description
    Rigidbody2D
    | Improve this Doc View Source

    RotateSpeed

    Declaration
    public float RotateSpeed { get; }
    Property Value
    Type Description
    float
    | Improve this Doc View Source

    Speed

    Declaration
    public float Speed { get; }
    Property Value
    Type Description
    float

    Methods

    | Improve this Doc View Source

    ApplyForce(Vector2, float)

    Declaration
    public void ApplyForce(Vector2 direction, float magnitude)
    Parameters
    Type Name Description
    Vector2 direction
    float magnitude
    | Improve this Doc View Source

    DisableCollider()

    Declaration
    public void DisableCollider()
    | Improve this Doc View Source

    EnableCollider()

    Declaration
    public void EnableCollider()
    | Improve this Doc View Source

    IgnoreCollision(Collider2D, bool)

    Declaration
    public void IgnoreCollision(Collider2D collider, bool ignore = true)
    Parameters
    Type Name Description
    Collider2D collider
    bool ignore
    | Improve this Doc View Source

    KinematicBody(bool)

    Declaration
    public void KinematicBody(bool isKinematic)
    Parameters
    Type Name Description
    bool isKinematic
    | Improve this Doc View Source

    MoveInDirection(Vector2, float)

    Start moving the entity towards the specified direction, will fail if Movement is blocked on this entity

    Declaration
    public void MoveInDirection(Vector2 direction, float acceleration = 1)
    Parameters
    Type Name Description
    Vector2 direction
    float acceleration
    | Improve this Doc View Source

    RotateByDegrees(float)

    Attempt to rotate the entity by the specified degree. If the specified angle is larger than the max rotation speed, the entity will rotate towards target angle will max speed. Will fail if Movement blocked.

    Declaration
    public void RotateByDegrees(float degree)
    Parameters
    Type Name Description
    float degree

    The degree to rotate the entity by

    | Improve this Doc View Source

    RotateForwardDirection(Vector2)

    Attempt to rotate the entity towards the specified direction. If the angle needed is larger than the max rotation speed, the entity will rotate towards target angle will max speed. Do nothing if movement is blocked.

    Declaration
    public void RotateForwardDirection(Vector2 direction)
    Parameters
    Type Name Description
    Vector2 direction

    The target direction to rotate towards

    | Improve this Doc View Source

    SetVelocity(Vector2)

    Declaration
    public void SetVelocity(Vector2 velocity)
    Parameters
    Type Name Description
    Vector2 velocity
    | Improve this Doc View Source

    SetVelocityImmediate(Vector2)

    Declaration
    public void SetVelocityImmediate(Vector2 velocity)
    Parameters
    Type Name Description
    Vector2 velocity
    • Improve this Doc
    • View Source
    In This Article
    Back to top LobsterFramework documentation