engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
dtOffMeshConnection结构体 参考

Defines an navigation mesh off-mesh connection within a dtMeshTile object. 更多...

#include <DetourNavMesh.h>

Public 成员函数

bool getBiDirectional () const
 Gets the link direction
 
bool getSnapToCheapestArea () const
 Gets the link snap mode
 
void setFlags (unsigned char conFlags)
 Sets link flags
 

Public 属性

unsigned char flags
 Link flags.
 
float height
 The snap height of endpoints (less than 0 = use step height)
 
unsigned short poly
 The polygon reference of the connection within the tile.
 
float pos [6]
 The endpoints of the connection. [(ax, ay, az, bx, by, bz)] 更多...
 
float rad
 The radius of the endpoints. [Limit: >= 0]
 
unsigned char side
 End point side.
 
unsigned int userId
 The id of the offmesh connection. (User assigned when the navigation mesh is built.)
 

详细描述

Defines an navigation mesh off-mesh connection within a dtMeshTile object.

An off-mesh connection is a user defined traversable connection made up to two vertices.

类成员变量说明

◆ pos

float dtOffMeshConnection::pos[6]

The endpoints of the connection. [(ax, ay, az, bx, by, bz)]

For a properly built navigation mesh, vertex A will always be within the bounds of the mesh. Vertex B is not required to be within the bounds of the mesh.


该结构体的文档由以下文件生成: