Dungeon Architect  17.0.0
SharpNav.Pathfinding.PathfindingCommon Class Reference

Store constants, structs, methods in this single class so that other classes can access this information. More...

Classes

class  NavMeshInfo
 Contains information about a navigation mesh More...
 

Static Public Member Functions

static void RandomPointInConvexPoly (Vector3[] pts, int npts, float[] areas, float s, float t, out Vector3 pt)
 Generate an accurate sample of random points in the convex polygon and pick a point. More...
 

Static Public Attributes

const int VERTS_PER_POLYGON = 6
 
const int STRAIGHTPATH_START = 0x01
 
const int STRAIGHTPATH_END = 0x02
 
const int STRAIGHTPATH_OFFMESH_CONNECTION = 0x04
 

Detailed Description

Store constants, structs, methods in this single class so that other classes can access this information.

Definition at line 21 of file PathfindingCommon.cs.

Member Function Documentation

◆ RandomPointInConvexPoly()

static void SharpNav.Pathfinding.PathfindingCommon.RandomPointInConvexPoly ( Vector3[]  pts,
int  npts,
float[]  areas,
float  s,
float  t,
out Vector3  pt 
)
static

Generate an accurate sample of random points in the convex polygon and pick a point.

Parameters
ptsThe polygon's points data
nptsThe number of points
areasThe triangle areas
sA random float
tAnother random float
ptThe resulting point

Definition at line 38 of file PathfindingCommon.cs.


The documentation for this class was generated from the following file: