nav

package
v0.0.0-...-1c5f5a9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPolys = 256
	MaxNodes = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

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

func NewNavigation

func NewNavigation() *Navigation
func (slf *Navigation) CanReach(dst d3.Vec3) bool

CanReach 是否可达

func (slf *Navigation) FindPathStraightPath(org, dst d3.Vec3) ([]d3.Vec3, error)

FindPathStraightPath 查询路径

func (slf *Navigation) LoadNavMesh(path string) error

Jump to

Keyboard shortcuts

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