I'm not a programmer,Please do not hesitate to correct me if I am wrong。
Assuming that the ground can walk, AI identifies the x-axis, Y-axis and z-axis within 1m,Where x and Y represent green and Z represents orange / red。X, Y axis can walk / run, and Z axis AI first identifies the highest point of Z axis。If it is more than 1.5m, give priority to dodge,If the highest point is 50cm, give priority to identifying dodge and then jump。If the highest point is 25cm, give priority to identifying the up and down leg movement。
First, solve the X and Y axes, that is, the plane problem,Use the AI sole as the starting point,It is assumed that the sole coordinate is (0.2 / 0.2 / 0.2) and the starting point of the ground grid is (150 / 300 / 0,The x,y-axis changes randomly, which does not affect AI walking and running)
After meeting the conditions of walking and running, AI can recognize the z-axis (within 1m around AI)
If: AI recognizes that the lowest point within 1 meter of the body is 3 meters, it is preferred to judge the detour.
If: AI recognizes that the lowest point within 1 meter of the whole body is 1-2.9 meters, it gives priority to judge the plane of walking, followed by jumping.
If the highest point of the object in the Z axis is an object more than 1.5m, AI will first identify the highest point of the object, and AI system will give priority to identifying Dodge (trees, houses, riprap, etc.)
If: the highest point of the object in the z-axis is 25cm-50cm, the AI system will give priority to identifying the jumping object, followed by the Detour
If there is a 25cm object in the Z axis, the AI system gives priority to recognizing the stepping action.
The main obstacles in the game are houses, trees, fences and city walls,In this way, the root grid of the obstacle embedded in the plane belongs to the red point. It is preferred to judge the detour. If it is set as a destructible object, it is set to orange.
If: AI should first bypass to attack the player with the highest efficiency, but in practice, because AI only explores within 1 meter of itself, it may attack destructible objects first,Or vice versa,AI should give priority to attacking destructible objects, but it missed a big circle and made low-level errors,At this time, a condition should be added, that is, the on-site AI will automatically share coordinate points and the AI will identify the shortest distance,If it takes 2 minutes to bypass and only 1 minute to attack an object, attack the object first and then attack the player。I don't know if I think so. After all, I'm not an expert. I hope you can criticize me
Or when I finish writing, I realize that I have written a lot of nonsense and actually write code. What I said is the most basic
Assuming that the ground can walk, AI identifies the x-axis, Y-axis and z-axis within 1m,Where x and Y represent green and Z represents orange / red。X, Y axis can walk / run, and Z axis AI first identifies the highest point of Z axis。If it is more than 1.5m, give priority to dodge,If the highest point is 50cm, give priority to identifying dodge and then jump。If the highest point is 25cm, give priority to identifying the up and down leg movement。
First, solve the X and Y axes, that is, the plane problem,Use the AI sole as the starting point,It is assumed that the sole coordinate is (0.2 / 0.2 / 0.2) and the starting point of the ground grid is (150 / 300 / 0,The x,y-axis changes randomly, which does not affect AI walking and running)
After meeting the conditions of walking and running, AI can recognize the z-axis (within 1m around AI)
If: AI recognizes that the lowest point within 1 meter of the body is 3 meters, it is preferred to judge the detour.
If: AI recognizes that the lowest point within 1 meter of the whole body is 1-2.9 meters, it gives priority to judge the plane of walking, followed by jumping.
If the highest point of the object in the Z axis is an object more than 1.5m, AI will first identify the highest point of the object, and AI system will give priority to identifying Dodge (trees, houses, riprap, etc.)
If: the highest point of the object in the z-axis is 25cm-50cm, the AI system will give priority to identifying the jumping object, followed by the Detour
If there is a 25cm object in the Z axis, the AI system gives priority to recognizing the stepping action.
The main obstacles in the game are houses, trees, fences and city walls,In this way, the root grid of the obstacle embedded in the plane belongs to the red point. It is preferred to judge the detour. If it is set as a destructible object, it is set to orange.
If: AI should first bypass to attack the player with the highest efficiency, but in practice, because AI only explores within 1 meter of itself, it may attack destructible objects first,Or vice versa,AI should give priority to attacking destructible objects, but it missed a big circle and made low-level errors,At this time, a condition should be added, that is, the on-site AI will automatically share coordinate points and the AI will identify the shortest distance,If it takes 2 minutes to bypass and only 1 minute to attack an object, attack the object first and then attack the player。I don't know if I think so. After all, I'm not an expert. I hope you can criticize me
Or when I finish writing, I realize that I have written a lot of nonsense and actually write code. What I said is the most basic
Last edited: