Store constants, structs, methods in this single class so that other classes can access this information.
More...
|
const int | VERTS_PER_POLYGON = 6 |
|
const int | STRAIGHTPATH_START = 0x01 |
|
const int | STRAIGHTPATH_END = 0x02 |
|
const int | STRAIGHTPATH_OFFMESH_CONNECTION = 0x04 |
|
Store constants, structs, methods in this single class so that other classes can access this information.
Definition at line 21 of file PathfindingCommon.cs.
◆ 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
-
pts | The polygon's points data |
npts | The number of points |
areas | The triangle areas |
s | A random float |
t | Another random float |
pt | The resulting point |
Definition at line 38 of file PathfindingCommon.cs.
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Pathfinding/PathfindingCommon.cs