File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ <h1 class="text-5xl font-bold mb-4">Vleue Navigator</h1>
57
57
</ div >
58
58
</ div >
59
59
60
+ < footer class ="bg-gray-800 text-white py-4 ">
61
+ < div class ="container mx-auto text-center ">
62
+ < p >
63
+ < a href ="https://github.com/vleue/vleue_navigator " class ="text-blue-500 hover:underline "> GitHub Repository</ a > |
64
+ < a href ="https://docs.rs/vleue_navigator/latest/vleue_navigator/ " class ="text-blue-500 hover:underline "> Documentation</ a >
65
+ </ p >
66
+ </ div >
67
+ </ footer >
68
+
60
69
< div class ="container mx-auto p-4 ">
61
70
< h1 class ="text-3xl font-bold mb-4 "> Features</ h1 >
62
71
< ul class ="list-disc pl-5 mb-8 grid grid-cols-2 gap-4 ">
@@ -137,16 +146,6 @@ <h2 class="text-2xl font-bold mb-2">Usage</h2>
137
146
info!("no path found from {:?} to {:?}", from, to);
138
147
}
139
148
}
140
-
141
- let mut rng = rand::thread_rng();
142
- let from = vec2(rng.gen_range(0.0..10.0), rng.gen_range(0.0..10.0));
143
- let to = vec2(rng.gen_range(0.0..10.0), rng.gen_range(0.0..10.0));
144
-
145
- if let Some(path) = navmesh.path(from, to) {
146
- info!("found path from {:?} to {:?}: {:?}", from, to, path);
147
- } else {
148
- info!("no path found from {:?} to {:?}", from, to);
149
- }
150
149
}</ code > </ pre >
151
150
< button class ="copy-button absolute top-0 right-0 mt-1 mr-1 bg-gray-500 text-white px-3 py-1 rounded hover:bg-gray-600 " onclick ="copyToClipboard(`// Example usage of Vleue Navigator\nuse vleue_navigator::NavMesh;\n\nfn main() {\n let navmesh = NavMesh::new();\n // Add your pathfinding logic here\n}`, this) "> Copy</ button >
152
151
</ div >
You can’t perform that action at this time.
0 commit comments