recast

package module
v0.0.0-...-c50c216 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: Zlib Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-detour GoDoc Build Status Coverage Status

What is go-detour?

go-detour is a port of Detour, an amazing multi-platform library for navigation mesh path-finding, to the Go language.

So what is Detour?

From Detour README:

Detour is a path-finding and spatial reasoning toolkit. You can use any navigation mesh with Detour, but of course the data generated with Recast fits perfectly.

Detour offers simple static navigation mesh which is suitable for many simple cases, as well as tiled navigation mesh which allows you to plug in and out pieces of the mesh. The tiled mesh allows you to create systems where you stream new navigation data in and out as the player progresses the level, or you may regenerate tiles as the world changes.

Credits

go-detour has been ported to the Go language by Aurélien Rainone, and as such, is not an original work.

Detour, the original work from which current library is a port of, has been written by Mikko Mononen, and released under the following:

copyright (c) 2009 Mikko Mononen memon@inside.org.

License

go-detour is licensed under ZLib license, see LICENSE for more information.

Documentation

Index

Constants

View Source
const (
	SAMPLE_POLYAREA_GROUND uint8 = iota
	SAMPLE_POLYAREA_WATER
	SAMPLE_POLYAREA_ROAD
	SAMPLE_POLYAREA_DOOR
	SAMPLE_POLYAREA_GRASS
	SAMPLE_POLYAREA_JUMP
)

These are just sample areas to use consistent values across the samples. The use should specify these base on his needs. SamplePolyAreas

View Source
const (
	SAMPLE_POLYFLAGS_WALK     uint16 = 0x01 // Ability to walk (ground, grass, road)
	SAMPLE_POLYFLAGS_SWIM     uint16 = 0x02 // Ability to swim (water).
	SAMPLE_POLYFLAGS_DOOR     uint16 = 0x04 // Ability to move through doors.
	SAMPLE_POLYFLAGS_JUMP     uint16 = 0x08 // Ability to jump.
	SAMPLE_POLYFLAGS_DISABLED uint16 = 0x10 // Disabled polygon
	SAMPLE_POLYFLAGS_ALL      uint16 = 0xff // All abilities.
)

enum SamplePolyFlags

Variables

This section is empty.

Functions

This section is empty.

Types

type SamplePartitionType

type SamplePartitionType int
const (
	SAMPLE_PARTITION_WATERSHED SamplePartitionType = iota
	SAMPLE_PARTITION_MONOTONE
	SAMPLE_PARTITION_LAYERS
)

type SoloMesh

type SoloMesh struct {
	// contains filtered or unexported fields
}

func NewSoloMesh

func NewSoloMesh() *SoloMesh

func (*SoloMesh) Build

func (sm *SoloMesh) Build() (*detour.NavMesh, bool)

func (sm *SoloMesh) Build() ([]uint8, bool) {

func (*SoloMesh) Load

func (sm *SoloMesh) Load(path string) bool

Directories

Path Synopsis
internal
dbg command

Jump to

Keyboard shortcuts

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