tests

package
v0.0.0-...-9aee9df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2018 License: MIT, Zlib Imports: 8 Imported by: 0

Documentation

Index

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 IsEquals

func IsEquals(a, b float32) bool

func LoadDynamicMesh

func LoadDynamicMesh(path string) (*detour.DtNavMesh, *dtcache.DtTileCache)

func LoadStaticMesh

func LoadStaticMesh(path string) *detour.DtNavMesh

Types

type FastLZCompressor

type FastLZCompressor struct{}

func (*FastLZCompressor) Compress

func (this *FastLZCompressor) Compress(buffer []byte, bufferSize int32, compressed []byte, maxCompressedSize int32, compressedSize *int32) detour.DtStatus

func (*FastLZCompressor) Decompress

func (this *FastLZCompressor) Decompress(compressed []byte, compressedSize int32, buffer []byte, maxBufferSize int32, bufferSize *int32) detour.DtStatus

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 struct {
	// contains filtered or unexported fields
}
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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL