@@ -18,19 +18,19 @@ namespace demo {
1818 void buildNavmesh (const FunctionCallbackInfo<Value>& args) {
1919 Isolate* isolate = args.GetIsolate ();
2020
21- float c_cellSize = Local<v8::Number>::Cast (args[1 ])->NumberValue ();
22- float c_cellHeight = Local<v8::Number>::Cast (args[2 ])->NumberValue ();
23- float c_agentHeight = Local<v8::Number>::Cast (args[3 ])->NumberValue ();
24- float c_agentRadius = Local<v8::Number>::Cast (args[4 ])->NumberValue ();
25- float c_agentMaxClimp = Local<v8::Number>::Cast (args[5 ])->NumberValue ();
26- float c_agentMaxSlope = Local<v8::Number>::Cast (args[6 ])->NumberValue ();
27- float c_regionMinSize = Local<v8::Number>::Cast (args[7 ])->NumberValue ();
28- float c_regionMergeSize = Local<v8::Number>::Cast (args[8 ])->NumberValue ();
29- float c_edgeMaxLen = Local<v8::Number>::Cast (args[9 ])->NumberValue ();
30- float c_edgeMaxError = Local<v8::Number>::Cast (args[10 ])->NumberValue ();
31- float c_vertsPerPoly = Local<v8::Number>::Cast (args[11 ])->NumberValue ();
32- float c_detailSampleDist = Local<v8::Number>::Cast (args[12 ])->NumberValue ();
33- float c_detailSampleMaxError = Local<v8::Number>::Cast (args[13 ])->NumberValue ();
21+ float c_cellSize = Local<v8::Number>::Cast (args[0 ])->NumberValue ();
22+ float c_cellHeight = Local<v8::Number>::Cast (args[1 ])->NumberValue ();
23+ float c_agentHeight = Local<v8::Number>::Cast (args[2 ])->NumberValue ();
24+ float c_agentRadius = Local<v8::Number>::Cast (args[3 ])->NumberValue ();
25+ float c_agentMaxClimp = Local<v8::Number>::Cast (args[4 ])->NumberValue ();
26+ float c_agentMaxSlope = Local<v8::Number>::Cast (args[5 ])->NumberValue ();
27+ float c_regionMinSize = Local<v8::Number>::Cast (args[6 ])->NumberValue ();
28+ float c_regionMergeSize = Local<v8::Number>::Cast (args[7 ])->NumberValue ();
29+ float c_edgeMaxLen = Local<v8::Number>::Cast (args[8 ])->NumberValue ();
30+ float c_edgeMaxError = Local<v8::Number>::Cast (args[9 ])->NumberValue ();
31+ float c_vertsPerPoly = Local<v8::Number>::Cast (args[10 ])->NumberValue ();
32+ float c_detailSampleDist = Local<v8::Number>::Cast (args[11 ])->NumberValue ();
33+ float c_detailSampleMaxError = Local<v8::Number>::Cast (args[12 ])->NumberValue ();
3434
3535 // if missing arguments
3636 if (c_cellSize != c_cellSize)
0 commit comments