Skip to content

Commit c318541

Browse files
[Community] [Navigation mesh pathfinding] Fix the rotation speed and declare property units. (#1421)
1 parent f304a8c commit c318541

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

extensions/community/NavMeshPathfinding.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "NavMeshPathfinding",
99
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Maps and Navigation/Maps and Navigation_map_find_search.svg",
1010
"shortDescription": "Pathfinding allows to compute an efficient path for objects, avoiding obstacles on the way.",
11-
"version": "0.2.3",
11+
"version": "0.2.4",
1212
"description": [
1313
"In comparison to the built-in pathfinding behavior, this one aims to:",
1414
"- better respect obstacle shapes",
@@ -4368,7 +4368,7 @@
43684368
" var isometricRatio = manager.configuration._getIsometricRatio();",
43694369
" var owner = this.behavior.owner;",
43704370
" var angleOffset = this.behavior._getAngleOffset();",
4371-
" var angularMaxSpeed = this.behavior._getMaxSpeed();",
4371+
" var angularMaxSpeed = this.behavior._getAngularMaxSpeed();",
43724372
" var rotateObject = this.behavior._getRotateObject();",
43734373
" var timeDelta = owner.getElapsedTime(instanceContainer) / 1000;",
43744374
" this.pathFollower.step(timeDelta);",
@@ -5312,7 +5312,7 @@
53125312
"objectGroups": []
53135313
},
53145314
{
5315-
"description": "Draw the navigation mesh used for the object.",
5315+
"description": "Draw the navigation mesh used for the object.\nThis action must be used after \"Move to a position\".",
53165316
"fullName": "Draw navigation mesh",
53175317
"functionType": "Action",
53185318
"group": "Debug",
@@ -5980,6 +5980,7 @@
59805980
{
59815981
"value": "400",
59825982
"type": "Number",
5983+
"unit": "PixelAcceleration",
59835984
"label": "Acceleration",
59845985
"description": "",
59855986
"group": "",
@@ -5989,6 +5990,7 @@
59895990
{
59905991
"value": "200",
59915992
"type": "Number",
5993+
"unit": "PixelSpeed",
59925994
"label": "Maximum speed",
59935995
"description": "",
59945996
"group": "",
@@ -5998,6 +6000,7 @@
59986000
{
59996001
"value": "180",
60006002
"type": "Number",
6003+
"unit": "AngularSpeed",
60016004
"label": "Rotation speed",
60026005
"description": "",
60036006
"group": "Rotation",
@@ -6016,6 +6019,7 @@
60166019
{
60176020
"value": "0",
60186021
"type": "Number",
6022+
"unit": "DegreeAngle",
60196023
"label": "Angle offset",
60206024
"description": "",
60216025
"group": "Rotation",
@@ -6037,6 +6041,7 @@
60376041
{
60386042
"value": "0",
60396043
"type": "Number",
6044+
"unit": "Pixel",
60406045
"label": "Extra border size",
60416046
"description": "",
60426047
"group": "Collision",
@@ -6303,6 +6308,7 @@
63036308
"functionType": "ActionWithOperator",
63046309
"getterName": "CellSize",
63056310
"name": "SetCellSize",
6311+
"private": true,
63066312
"sentence": "",
63076313
"events": [
63086314
{
@@ -6394,6 +6400,7 @@
63946400
"functionType": "ActionWithOperator",
63956401
"getterName": "AreaLeftBound",
63966402
"name": "SetAreaLeftBound",
6403+
"private": true,
63976404
"sentence": "",
63986405
"events": [
63996406
{
@@ -6485,6 +6492,7 @@
64856492
"functionType": "ActionWithOperator",
64866493
"getterName": "AreaTopBound",
64876494
"name": "SetAreaTopBound",
6495+
"private": true,
64886496
"sentence": "",
64896497
"events": [
64906498
{
@@ -6576,6 +6584,7 @@
65766584
"functionType": "ActionWithOperator",
65776585
"getterName": "AreaRightBound",
65786586
"name": "SetAreaRightBound",
6587+
"private": true,
65796588
"sentence": "",
65806589
"events": [
65816590
{
@@ -6667,6 +6676,7 @@
66676676
"functionType": "ActionWithOperator",
66686677
"getterName": "AreaBottomBound",
66696678
"name": "SetAreaBottomBound",
6679+
"private": true,
66706680
"sentence": "",
66716681
"events": [
66726682
{
@@ -6769,6 +6779,7 @@
67696779
{
67706780
"value": "10",
67716781
"type": "Number",
6782+
"unit": "Pixel",
67726783
"label": "Cell size",
67736784
"description": "Cell size for obstacle collision mask rasterization.",
67746785
"group": "",
@@ -6778,6 +6789,7 @@
67786789
{
67796790
"value": "0",
67806791
"type": "Number",
6792+
"unit": "Pixel",
67816793
"label": "Area left bound",
67826794
"description": "The left bound of the area where objects can go in the scene.",
67836795
"group": "",
@@ -6787,6 +6799,7 @@
67876799
{
67886800
"value": "0",
67896801
"type": "Number",
6802+
"unit": "Pixel",
67906803
"label": "Area top bound",
67916804
"description": "The top bound of the area where objects can go in the scene.",
67926805
"group": "",
@@ -6796,6 +6809,7 @@
67966809
{
67976810
"value": "0",
67986811
"type": "Number",
6812+
"unit": "Pixel",
67996813
"label": "Area right bound",
68006814
"description": "The right bound of the area where objects can go in the scene (default to the game resolution).",
68016815
"group": "",
@@ -6805,6 +6819,7 @@
68056819
{
68066820
"value": "0",
68076821
"type": "Number",
6822+
"unit": "Pixel",
68086823
"label": "Area bottom bound",
68096824
"description": "The bottom bound of the area where objects can go in the scene (default to the game resolution).",
68106825
"group": "",

0 commit comments

Comments
 (0)