Search Results for

    Show / Hide Table of Contents

    Struct NavAreaProperties

    The navigation area properties container for navmesh building and navigation runtime.

    Inherited Members
    ISerializable::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
    ISerializable::DeserializeIfExists(DeserializeStream& stream, const char* memberName, ISerializeModifier* modifier)
    NavAreaProperties
    ISerializable::Serialize(SerializeStream& stream, const void* otherObj)
    NavAreaProperties
    NavAreaProperties
    ISerializable::~ISerializable()
    Assembly: FlaxEngine.dll
    File: Engine/Navigation/NavigationTypes.h
    Syntax
    public struct NavAreaProperties : public ISerializable

    Fields

    Color

    The area type color (for debugging). Alpha channel is used to blend with navmesh color (alpha 0 to use navmesh color only).

    Declaration
    public Color Color = Color::Transparent
    Field Value
    Color

    Cost

    The cost scale for the area traversal for agents. The higher the cost, the less likely agent wil choose the path that goes over it. For instance, areas that are harder to move like sand should have higher cost for proper path finding.

    Declaration
    public float Cost = 1
    Field Value
    float

    Id

    The area id. It must be unique for the project. Valid range 0-63. Value 0 is reserved for Null areas (empty, non-navigable areas).

    Declaration
    public byte Id
    Field Value
    byte

    Name

    The area type name. Identifies different types of the areas.

    Declaration
    public String Name
    Field Value
    String

    Methods

    operator!=(const NavAreaProperties& other)

    Declaration
    public bool operator!=(const NavAreaProperties& other) const
    Parameters
    NavAreaProperties other

    Returns
    bool

    operator==(const NavAreaProperties& other)

    Declaration
    public bool operator==(const NavAreaProperties& other) const
    Parameters
    NavAreaProperties other

    Returns
    bool

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat