Skip to content

Instantly share code, notes, and snippets.

@CedricGuillemet
Created August 27, 2019 22:40
Show Gist options
  • Save CedricGuillemet/b1e223e539e2e6af65b454487cf92082 to your computer and use it in GitHub Desktop.
Save CedricGuillemet/b1e223e539e2e6af65b454487cf92082 to your computer and use it in GitHub Desktop.
interface NavMesh {
void NavMesh();
void destroy();
void build([Const] float[] positions, [Const] long positionCount, [Const] long[] indices, [Const] long indexCount, [Const, Ref] rcConfig config);
[Value] DebugNavMesh getDebugNavMesh();
[Value] Vec3 getClosestPoint([Const, Ref] Vec3 position);
[Value] Vec3 getRandomPointAround([Const, Ref] Vec3 position, float maxRadius);
[Value] Vec3 moveAlong([Const, Ref] Vec3 position, [Const, Ref] Vec3 destination);
dtNavMesh getNavMesh();
[Value] NavPath computePath([Const, Ref] Vec3 start, [Const, Ref] Vec3 end);
void setDefaultQueryExtent([Const, Ref] Vec3 extent);
[Value] Vec3 getDefaultQueryExtent();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment