Function Navigation2D.navpolyAdd

Adds a NavigationPolygon. Returns an ID for use with navpolyRemove or navpolySetTransform. If given, a Transform2D is applied to the polygon. The optional owner is used as return value for getClosestPointOwner.

long navpolyAdd (
  NavigationPolygon mesh,
  const(Transform2D) xform,
  GodotObject owner = GodotObject(godot_object(null))
) nothrow @nogc;