Search Results for

    Show / Hide Table of Contents

    Interface IMovementSystem

    Inherited Members
    IMonoBehaviour.enabled
    IMonoBehaviour.transform
    IMonoBehaviour.gameObject
    IMonoBehaviour.StartCoroutine(IEnumerator)
    IMonoBehaviour.StopCoroutine(Coroutine)
    IMonoBehaviour.StopCoroutine(IEnumerator)
    IMonoBehaviour.GetComponent<T>()
    IMonoBehaviour.GetComponentInChildren<T>()
    IMonoBehaviour.GetComponent(Type)
    IMonoBehaviour.GetComponentInChildren(Type)
    Namespace: RTSEngine.Movement
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IMovementSystem : IMonoBehaviour

    Methods

    RaiseGraphUpdated()

    Declaration
    void RaiseGraphUpdated()

    TryGetValidPosition(Vector3, Single, Int32, out Vector3)

    Attempt to get a valid position that can be used as a movement path destination by sampling an area.

    Declaration
    bool TryGetValidPosition(Vector3 center, float radius, int areaMask, out Vector3 validPosition)
    Parameters
    Type Name Description
    Vector3 center

    Center of the area to sample.

    System.Single radius

    Radius of the area to sample.

    Int32 areaMask

    Area mask of the area to sample. This is the navigation area mask and not the terrain area mask!

    Vector3 validPosition

    If a valid movement destination is found, it would be available in this parameter.

    Returns
    Type Description
    Boolean

    True if there is a valid movement path destination in the area to sample. Otherwise, false.

    Events

    GraphUpdated

    Declaration
    event CustomEventHandler<IMovementSystem, EventArgs> GraphUpdated
    Event Type
    Type Description
    CustomEventHandler<IMovementSystem, System.EventArgs>
    In This Article
    Back to top Unity RTS Engine Documentation