Documentation ¶
Index ¶
- Constants
- func CreateQuery(mesh *detour.DtNavMesh, maxNode int) *detour.DtNavMeshQuery
- func FindRandomPoint(query *detour.DtNavMeshQuery, filter *detour.DtQueryFilter, ...) detour.DtStatus
- func IsEquals(a, b float32) bool
- func LoadDynamicMesh(path string) (*detour.DtNavMesh, *dtcache.DtTileCache)
- func LoadStaticMesh(path string) *detour.DtNavMesh
- type FastLZCompressor
- func (this *FastLZCompressor) Compress(buffer []byte, bufferSize int32, compressed []byte, maxCompressedSize int32, ...) detour.DtStatus
- func (this *FastLZCompressor) Decompress(compressed []byte, compressedSize int32, buffer []byte, maxBufferSize int32, ...) detour.DtStatus
- func (this *FastLZCompressor) MaxCompressedSize(bufferSize int32) int32
- type MeshProcess
- type NavMeshSetHeader
- type NavMeshTileHeader
- type TileCacheSetHeader
- type TileCacheTileHeader
Constants ¶
View Source
const ( POLYAREA_GROUND uint8 = 0 POLYAREA_WATER uint8 = 1 POLYAREA_ROAD uint8 = 2 POLYAREA_DOOR uint8 = 3 POLYAREA_GRASS uint8 = 4 POLYAREA_JUMP uint8 = 5 )
View Source
const ( POLYFLAGS_WALK uint16 = 0x01 // Ability to walk (ground, grass, road) POLYFLAGS_SWIM uint16 = 0x02 // Ability to swim (water). POLYFLAGS_DOOR uint16 = 0x04 // Ability to move through doors. POLYFLAGS_JUMP uint16 = 0x08 // Ability to jump. POLYFLAGS_DISABLED uint16 = 0x10 // Disabled polygon POLYFLAGS_ALL uint16 = 0xffff // All abilities. )
View Source
const NAVMESHSET_MAGIC int32 = int32('M')<<24 | int32('S')<<16 | int32('A')<<8 | int32('T')
View Source
const NAVMESHSET_VERSION int32 = 1
View Source
const TILECACHESET_MAGIC int32 = int32('T')<<24 | int32('S')<<16 | int32('A')<<8 | int32('T')
View Source
const TILECACHESET_VERSION int32 = 1
Variables ¶
This section is empty.
Functions ¶
func CreateQuery ¶
func CreateQuery(mesh *detour.DtNavMesh, maxNode int) *detour.DtNavMeshQuery
func FindRandomPoint ¶
func FindRandomPoint(query *detour.DtNavMeshQuery, filter *detour.DtQueryFilter, frand func() float32, randomRef *detour.DtPolyRef, randomPt []float32) detour.DtStatus
func LoadDynamicMesh ¶
func LoadDynamicMesh(path string) (*detour.DtNavMesh, *dtcache.DtTileCache)
func LoadStaticMesh ¶
Types ¶
type FastLZCompressor ¶
type FastLZCompressor struct{}
func (*FastLZCompressor) Decompress ¶
func (*FastLZCompressor) MaxCompressedSize ¶
func (this *FastLZCompressor) MaxCompressedSize(bufferSize int32) int32
type MeshProcess ¶
type MeshProcess struct{}
func (*MeshProcess) Process ¶
func (this *MeshProcess) Process(params *detour.DtNavMeshCreateParams, polyAreas []uint8, polyFlags []uint16)
type NavMeshSetHeader ¶
type NavMeshSetHeader struct {
// contains filtered or unexported fields
}
type NavMeshTileHeader ¶
type NavMeshTileHeader struct {
// contains filtered or unexported fields
}
type TileCacheSetHeader ¶
type TileCacheSetHeader struct {
// contains filtered or unexported fields
}
type TileCacheTileHeader ¶
type TileCacheTileHeader struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.