Skip to content

导出脚本中 (navMeshTriangulation.indices[i + 1] + 2) 这么写目的是啥 #1

Description

@ycllz

导出脚本中 (navMeshTriangulation.indices[i + 1] + 2) 这么写目的是啥

NavMeshExport.cs 38行

streamWriter.WriteLine("f " + (navMeshTriangulation.indices[i] + 1) + " " + (navMeshTriangulation.indices[i + 1] + 2) + " " + (navMeshTriangulation.indices[i + 1] + 1));
索引不是从头到尾吗?:streamWriter.WriteLine("f " + (navMeshTriangulation.indices[i] + 1) + " " + (navMeshTriangulation.indices[i + 1] + 1) + " " + (navMeshTriangulation.indices[i + 2] + 1));
每连续三个索引一个三角形?请教。谢谢。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions