|
8 | 8 | "name": "NavMeshPathfinding", |
9 | 9 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Maps and Navigation/Maps and Navigation_map_find_search.svg", |
10 | 10 | "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", |
12 | 12 | "description": [ |
13 | 13 | "In comparison to the built-in pathfinding behavior, this one aims to:", |
14 | 14 | "- better respect obstacle shapes", |
|
4368 | 4368 | " var isometricRatio = manager.configuration._getIsometricRatio();", |
4369 | 4369 | " var owner = this.behavior.owner;", |
4370 | 4370 | " var angleOffset = this.behavior._getAngleOffset();", |
4371 | | - " var angularMaxSpeed = this.behavior._getMaxSpeed();", |
| 4371 | + " var angularMaxSpeed = this.behavior._getAngularMaxSpeed();", |
4372 | 4372 | " var rotateObject = this.behavior._getRotateObject();", |
4373 | 4373 | " var timeDelta = owner.getElapsedTime(instanceContainer) / 1000;", |
4374 | 4374 | " this.pathFollower.step(timeDelta);", |
|
5312 | 5312 | "objectGroups": [] |
5313 | 5313 | }, |
5314 | 5314 | { |
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\".", |
5316 | 5316 | "fullName": "Draw navigation mesh", |
5317 | 5317 | "functionType": "Action", |
5318 | 5318 | "group": "Debug", |
|
5980 | 5980 | { |
5981 | 5981 | "value": "400", |
5982 | 5982 | "type": "Number", |
| 5983 | + "unit": "PixelAcceleration", |
5983 | 5984 | "label": "Acceleration", |
5984 | 5985 | "description": "", |
5985 | 5986 | "group": "", |
|
5989 | 5990 | { |
5990 | 5991 | "value": "200", |
5991 | 5992 | "type": "Number", |
| 5993 | + "unit": "PixelSpeed", |
5992 | 5994 | "label": "Maximum speed", |
5993 | 5995 | "description": "", |
5994 | 5996 | "group": "", |
|
5998 | 6000 | { |
5999 | 6001 | "value": "180", |
6000 | 6002 | "type": "Number", |
| 6003 | + "unit": "AngularSpeed", |
6001 | 6004 | "label": "Rotation speed", |
6002 | 6005 | "description": "", |
6003 | 6006 | "group": "Rotation", |
|
6016 | 6019 | { |
6017 | 6020 | "value": "0", |
6018 | 6021 | "type": "Number", |
| 6022 | + "unit": "DegreeAngle", |
6019 | 6023 | "label": "Angle offset", |
6020 | 6024 | "description": "", |
6021 | 6025 | "group": "Rotation", |
|
6037 | 6041 | { |
6038 | 6042 | "value": "0", |
6039 | 6043 | "type": "Number", |
| 6044 | + "unit": "Pixel", |
6040 | 6045 | "label": "Extra border size", |
6041 | 6046 | "description": "", |
6042 | 6047 | "group": "Collision", |
|
6303 | 6308 | "functionType": "ActionWithOperator", |
6304 | 6309 | "getterName": "CellSize", |
6305 | 6310 | "name": "SetCellSize", |
| 6311 | + "private": true, |
6306 | 6312 | "sentence": "", |
6307 | 6313 | "events": [ |
6308 | 6314 | { |
|
6394 | 6400 | "functionType": "ActionWithOperator", |
6395 | 6401 | "getterName": "AreaLeftBound", |
6396 | 6402 | "name": "SetAreaLeftBound", |
| 6403 | + "private": true, |
6397 | 6404 | "sentence": "", |
6398 | 6405 | "events": [ |
6399 | 6406 | { |
|
6485 | 6492 | "functionType": "ActionWithOperator", |
6486 | 6493 | "getterName": "AreaTopBound", |
6487 | 6494 | "name": "SetAreaTopBound", |
| 6495 | + "private": true, |
6488 | 6496 | "sentence": "", |
6489 | 6497 | "events": [ |
6490 | 6498 | { |
|
6576 | 6584 | "functionType": "ActionWithOperator", |
6577 | 6585 | "getterName": "AreaRightBound", |
6578 | 6586 | "name": "SetAreaRightBound", |
| 6587 | + "private": true, |
6579 | 6588 | "sentence": "", |
6580 | 6589 | "events": [ |
6581 | 6590 | { |
|
6667 | 6676 | "functionType": "ActionWithOperator", |
6668 | 6677 | "getterName": "AreaBottomBound", |
6669 | 6678 | "name": "SetAreaBottomBound", |
| 6679 | + "private": true, |
6670 | 6680 | "sentence": "", |
6671 | 6681 | "events": [ |
6672 | 6682 | { |
|
6769 | 6779 | { |
6770 | 6780 | "value": "10", |
6771 | 6781 | "type": "Number", |
| 6782 | + "unit": "Pixel", |
6772 | 6783 | "label": "Cell size", |
6773 | 6784 | "description": "Cell size for obstacle collision mask rasterization.", |
6774 | 6785 | "group": "", |
|
6778 | 6789 | { |
6779 | 6790 | "value": "0", |
6780 | 6791 | "type": "Number", |
| 6792 | + "unit": "Pixel", |
6781 | 6793 | "label": "Area left bound", |
6782 | 6794 | "description": "The left bound of the area where objects can go in the scene.", |
6783 | 6795 | "group": "", |
|
6787 | 6799 | { |
6788 | 6800 | "value": "0", |
6789 | 6801 | "type": "Number", |
| 6802 | + "unit": "Pixel", |
6790 | 6803 | "label": "Area top bound", |
6791 | 6804 | "description": "The top bound of the area where objects can go in the scene.", |
6792 | 6805 | "group": "", |
|
6796 | 6809 | { |
6797 | 6810 | "value": "0", |
6798 | 6811 | "type": "Number", |
| 6812 | + "unit": "Pixel", |
6799 | 6813 | "label": "Area right bound", |
6800 | 6814 | "description": "The right bound of the area where objects can go in the scene (default to the game resolution).", |
6801 | 6815 | "group": "", |
|
6805 | 6819 | { |
6806 | 6820 | "value": "0", |
6807 | 6821 | "type": "Number", |
| 6822 | + "unit": "Pixel", |
6808 | 6823 | "label": "Area bottom bound", |
6809 | 6824 | "description": "The bottom bound of the area where objects can go in the scene (default to the game resolution).", |
6810 | 6825 | "group": "", |
|
0 commit comments