网格寻路建立连接

This commit is contained in:
kercylan98 2023-06-19 14:16:28 +08:00
parent 62b6f209a3
commit 4453429bd1
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ import (
"github.com/kercylan98/minotaur/utils/maths"
)
type Navmesh[V generic.SignedNumber] struct {
type NavMesh[V generic.SignedNumber] struct {
meshShapes []*shape[V]
}
func (slf *Navmesh[V]) generateLink() {
func (slf *NavMesh[V]) generateLink() {
refer := len(slf.meshShapes)
for i := 0; i < refer; i++ {
shapePkg := slf.meshShapes[i]