Struct oxygengine_navigation::resource::NavMeshesRes[][src]

pub struct NavMeshesRes(_);
Expand description

ECS resource that holds and manages nav meshes.

Implementations

Register new nav mesh.

Arguments

  • mesh - nav mesh object.

Returns

Identifier of registered nav mesh.

Unregister nav mesh.

Arguments

  • id - nav mesh identifier.

Returns

Some with nav mesh object if nav mesh with given identifier was found, None otherwise.

Unregister all nav meshes.

Get nav meshes iterator.

Find nav mesh by its identifier.

Arguments

  • id - nav mesh identifier.

Returns

Some with nav mesh if exists or None otherwise.

Find nav mesh by its identifier.

Arguments

  • id - nav mesh identifier.

Returns

Some with mutable nav mesh if exists or None otherwise.

Find closest point on nav meshes.

Arguments

  • point - query point.
  • query - query quality.

Returns

Some with nav mesh identifier and point on nav mesh if found or None otherwise.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

Tries to create the default.

Calls try_default and panics on an error case.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.