Adaptive moving method and system between point locations in stepping scene and storage medium

By setting distance threshold and angle offset threshold in step-by-step scenarios and selecting appropriate movement methods, the problem of single movement between points and positions in traditional step-by-step scenarios is solved, improving user experience and comfort, ensuring that users You can successfully observe the target points during a virtual tour.

CN119152154AInactive Publication Date: 2024-12-17VSWORK NETWORK TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411595374.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2024-12-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In traditional step-by-step scenarios, the movement between points and positions is single, which cannot meet the user's usage habits, resulting in reduced virtual experience and visual fatigue.

Method used

By presetting the distance threshold and angular offset threshold, based on the user's displacement information and obstacle detection results, select automatic pathfinding or straight line movement to ensure that the user's field of vision is consistent with the positive direction of the target point when moving, and avoid obstacles and fast lenses Convert.

Benefits of technology

It improves the user experience, reduces visual fatigue, adapts to different situations through automatic pathfinding and linear movement, ensuring that users can comfortably observe the point content during step-by-step tours.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119152154A_ABST
    Figure CN119152154A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive moving method and system between point locations in a stepping scene and a storage medium, and belongs to the technical field of stepping scenes, and the method comprises the steps: presetting a distance threshold value and an angle deviation threshold value; acquiring displacement information of a user; calculating a target point location according to the displacement information; calculating whether the distance between the point locations exceeds a distance threshold value or not, if so, starting automatic path finding, and setting the target point location as an automatic path finding end point; if not, acquiring an obstacle detection result, and if an obstacle exists between the point locations, starting automatic path finding, and setting the target point location as an automatic path finding end point; if no barrier exists between the point locations, calculating an included angle between the view direction of the current user and the positive direction; if the included angle exceeds the angle deviation threshold value, automatic path finding is started, and the target point location is set as the end point of automatic path finding; and if the included angle does not exceed the angle deviation threshold value, moving the user to the target point position along a straight line. According to the invention, the moving mode is adaptively selected according to the information of the target point location.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of step-by-step scenes, and in particular to a method, system and storage medium for adaptively moving between points in a step-by-step scene. Background Art

[0002] The step-by-step scene is a form of interaction in virtual and real technology. Virtual and real technology is mainly based on computer technology, and uses and integrates the latest developments of various high technologies such as 3D graphics technology, multimedia technology, simulation technology, display technology, servo technology, etc., and uses computers and other equipment to create a virtual world with realistic 3D vision, touch, smell and other sensory experiences. The difference between the step-by-step scene and the ordinary virtual scene is that the user can move freely in the ordinary virtual scene, while the step-by-step scene sets different points when the scene is constructed. After the user enters the scene, he moves according to the points through the movement keys. When this is applied to some virtual venues that are more display-oriented, it can reduce the user's operation time and improve the efficiency of visiting the venue.

[0003] However, in traditional step-by-step scenes, when you want to move between different points, you usually use the method of teleporting on the points, which cannot display the pictures of the user during the movement between points. This will reduce the user's virtual experience, and due to the fast switching speed, the picture replacement process will also cause visual fatigue. If you use the walking method, due to the characteristics of the virtual scene lens following the user, if the points are close to each other, the user's perspective will change rapidly as the user walks, which is not conducive to the user observing the picture when the point moves. Therefore, the traditional step-by-step scene point movement is not user-friendly and cannot meet the needs of users. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the movement mode between points in the above-mentioned step-by-step scene is single and not in line with the user's usage habits, and to propose an adaptive movement method, system and storage medium between points in a step-by-step scene. The method has the advantages of selecting the movement mode according to the point distribution, being more in line with the real feeling, and being more user-friendly.

[0005] In a first aspect, the present invention achieves the above-mentioned purpose through the following technical solutions, a method for adaptive movement between points in a step-by-step scene, the method comprising the following steps: Pre-set distance threshold and angle offset threshold; Acquire user displacement information, where the displacement information includes a displacement direction and a current user's field of view direction; Calculate the target point according to the displacement information, and obtain the point information of the target point, wherein the point information includes the point distance between the target point and the current position, the obstacle detection result, and the positive direction, wherein the positive direction is the direction of the user's field of view when switching to the target point; Calculate whether the distance between the points exceeds the distance threshold, and if so, start automatic path finding and set the target point as the end point of automatic path finding; If not, the obstacle detection result is obtained. If there is an obstacle between the points, automatic path finding is started, and the target point is set as the end point of automatic path finding; If there is no obstacle between the points, then calculate the angle between the current user's field of view and the positive direction; If the angle exceeds the angle offset threshold, automatic path finding is started, and the target point is set as the end point of automatic path finding; If the angle does not exceed the angle deviation threshold, the user is moved along a straight line to the target point.

[0006] Preferably, the process of moving the user along a straight line to the target point also includes fixing the viewing direction of the user.

[0007] Preferably, the method also includes setting an angle offset threshold including a first threshold and a second threshold. If the angle does not exceed the first threshold, it is fixed according to the current field of view direction. If the angle exceeds the first threshold and does not exceed the second threshold, the current field of view direction is rotated to be consistent with the positive direction of the target point, and fixed according to the rotated field of view direction.

[0008] Preferably, the method for calculating the target point position according to the displacement information is: Calculate the direction vector of the displacement direction; Obtaining left and right offset angles of the direction vector, wherein the left and right offset angles are used to determine the range of the displacement direction, and calculating the boundary vector of the displacement direction according to the left and right offset angles; Get all points between boundary vectors; Calculate the distance between all points and the current position, and select the point with the smallest distance as the target point.

[0009] Preferably, the method for starting automatic path finding is: Enter the initial point and end point of automatic path finding, the initial point is the current position, and the end point is the target point; Bake the ground of the virtual scene to generate the navigation mesh; An optimal path is generated in the navigation grid, and a user is controlled to move along the optimal path.

[0010] Preferably, the method for obtaining the obstacle detection result is: Sending a number of rays to the target point from the current position; Set the distance between the highest ray and the lowest ray to be consistent with the height of the user model; If the ray outputs a collision signal, a result indicating that there is an obstacle is output; if the ray does not output a collision signal, a result indicating that there is no obstacle is output.

[0011] In a second aspect, the present invention achieves the above-mentioned purpose through the following technical solutions: an adaptive movement system between points in a step-by-step scene, the system comprising: A threshold setting unit, used to pre-set a distance threshold and an angle offset threshold; A displacement detection unit, used to obtain displacement information of the user, wherein the displacement information includes a displacement direction and a current field of view direction of the user; a point detection unit, configured to calculate a target point according to the displacement information, and obtain point information of the target point, wherein the point information includes a point distance between the target point and the current position, an obstacle detection result, and a positive direction, wherein the positive direction is a direction of the user's field of view when switching to the target point; A mobile control unit, used to calculate whether the distance between the points exceeds a distance threshold, and if so, start automatic path finding and set the target point as the end point of the automatic path finding; If not, the obstacle detection result is obtained. If there is an obstacle between the points, automatic path finding is started, and the target point is set as the end point of automatic path finding; If there is no obstacle between the points, then calculate the angle between the current user's field of view and the positive direction; If the angle exceeds the angle offset threshold, automatic path finding is started, and the target point is set as the end point of automatic path finding; If the angle does not exceed the angle deviation threshold, the user is moved along a straight line to the target point.

[0012] Preferably, the process in which the mobile control unit moves the user along a straight line to the target point also includes fixing the viewing direction of the user.

[0013] Preferably, the angle offset threshold set by the threshold setting unit includes a first threshold and a second threshold. If the angle does not exceed the first threshold, it is fixed according to the current field of view direction. If the angle exceeds the first threshold and does not exceed the second threshold, the current field of view direction is rotated to be consistent with the positive direction of the target point, and is fixed according to the rotated field of view direction.

[0014] In a third aspect, the present invention achieves the above-mentioned purpose through the following technical scheme: a storage medium having a computer program stored thereon, which, when executed by a processor, implements the adaptive movement method between points in a step-by-step scene as described in the first aspect.

[0015] Compared with the prior art, the present invention has the following beneficial effects: The present invention determines the mode of switching points in a step-by-step scene by calculating the distance between the current position and the target point, whether there are obstacles, and whether the field of view direction is too offset from the positive direction of the target point. A positive direction is set for each point, and the positive direction can be preset by the developer. In this way, after moving to the point, the field of view can be consistent with the positive direction of the point, which helps to highlight the content that the developer wants to display for the user to watch. In this method, the movement modes between points include automatic path finding and straight-line movement. The corresponding movement mode is selected for different situations, so that the user will not pass through obstacles during the step-by-step tour, or can quickly switch to the point with a close distance; and in the process of moving in a straight line, since the user's current field of view direction is not offset from the positive direction to a large extent, the user's viewing angle is locked, so that the discomfort will not be caused by too fast lens switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of the method for adaptive movement between points in a step-by-step scene of the present invention.

[0017] Figure 2 It is a schematic diagram of the composition of the adaptive movement system between points in the step-by-step scene of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] Example 1 like Figure 1 As shown, an adaptive movement method between points in a step-by-step scene is provided. In the step-by-step scene, the user cannot move freely in the scene. Instead, the user moves by presetting step points and using switching points to replace the user's movement. Stepping is achieved during the point switching process. The method includes the following steps: The distance threshold and the angle offset threshold are pre-set as two judgment criteria. According to the above-mentioned step-by-step scene, the stepping points are preset, so the position of each point is fixed. When the user is at the current point, the distance between the user and the surrounding adjacent points can be obtained. The distance threshold is used as the judgment condition for adaptive movement. When building a step-by-step scene, in order to facilitate users to see the content that the developer wants to present at the first time after each point switch, a positive direction is usually set for each point. This positive direction is used to determine the direction of the user's field of view after the user moves to the point. Therefore, there will be a certain angle between the user's current field of view and the positive direction of the point. The angle slice threshold is used as the judgment condition for adaptive movement based on the angle.

[0020] Obtain the user's displacement information, which includes the displacement direction and the current user's field of view direction. In the step-by-step scenario, the user moves from one point to another. Since there are multiple points around each point, in this step, it is necessary to determine the point to which the user wants to move. The user can move through a joystick or direction keys. The displacement direction can be obtained by identifying the operation of the joystick or direction keys. Although it is mentioned above that the point will set a positive direction to control the user's field of view after reaching the point, the user can also freely rotate the field of view at the point to observe the environment around the point. Otherwise, it is impossible to switch to the point to be reached. Therefore, before moving to the next point, the user's field of view direction cannot be directly obtained, so the current user's field of view direction needs to be obtained for subsequent calculations.

[0021] The target point is calculated according to the displacement information, and the point information of the target point is obtained. The point information includes the point spacing between the target point and the current position, the obstacle detection result and the positive direction. The positive direction is the direction of the field of vision when the user switches to the target point. In this step, it is mainly used to calculate the target point, that is, the point to which the user wants to move. The above displacement information can determine the user's moving direction, and there are multiple points in the moving direction. The point that the user finally wants to reach is calculated as the target point. After the target point is calculated, the point spacing, obstacle detection result and positive direction can be obtained according to the target point. The point spacing is the distance between the current user's position and the target point. The obstacle detection result is to determine whether there is an obstacle between the current user's position and the target point, such as a wall between two points. The positive direction is the above-mentioned preset point. The direction of the user's field of vision at the point is set as the positive direction, and the adaptive movement is judged according to these three parameters.

[0022] The judgment method is as follows: Calculate whether the distance between the points exceeds the distance threshold. If so, start automatic pathfinding and set the target point as the end point of automatic pathfinding. The point distance is used as the first judgment criterion. For two points exceeding the distance threshold, due to the long-distance movement scenario, there is no need to consider the factor of too fast lens rotation. A sufficiently long movement time can avoid rapid rotation of the field of view. Moreover, for long-distance movement, more time can be provided for the user to observe the scene content during the movement. Therefore, for the target point exceeding the distance threshold, automatic pathfinding is used to realize the switching of the points. During the automatic pathfinding process, the pathfinding system automatically selects the optimal path to bypass obstacles for movement. This movement method enables the user to slowly walk to the target point without any operation.

[0023] If it does not exceed, the obstacle detection result is obtained. If there is an obstacle between the points, automatic path finding is turned on, and the target point is set as the end point of automatic path finding. For the target point within the distance threshold, whether there is an obstacle is used as the second judgment criterion. When there is an obstacle between the two points, direct movement cannot be used because the obstacle will block the user's movement. If the user passes through the middle of the obstacle, it does not conform to the real scene content and causes a sense of separation. Therefore, when there is an obstacle, the automatic path finding method is also selected to achieve point switching. In this way, according to the optimal path algorithm of the path finding system, the obstacle can be bypassed for movement.

[0024] If there is no obstacle between the points, the angle between the current user's field of view and the positive direction is calculated. In the case of no obstacle, the angle offset threshold is used as the third judgment criterion. It is mentioned above that when the user is at the current point, the viewing angle can be rotated, so the viewing direction may be inconsistent with the positive direction of the current point. Therefore, it is necessary to calculate the angle between the current user's field of view and the positive direction, and use the angle as the basis for judgment.

[0025] If the angle exceeds the angle offset threshold, automatic routing is turned on and the target point is set as the end point of automatic routing. When the angle exceeds the angle offset threshold, it means that the angle between the current user's field of view and the positive direction is too large. For example, the current user's field of view is toward the west, and the target point is on the east or north and south sides, but the current user's field of view cannot directly see the target point. If it moves directly, it will affect the viewing of the scene content during the movement, and the field of view lens rotates faster, causing dizziness. Therefore, automatic routing is selected. During the automatic routing process, the user's field of view is first adjusted to face the target point, and then walk to the target point, so that the surrounding scene content can be fully observed during the walking process.

[0026] If the angle does not exceed the angle offset threshold, the user is moved in a straight line to the target point. The above-mentioned point movement methods all use automatic path finding methods. For the case where the angle offset threshold is not exceeded, the second movement method is selected, that is, moving in a straight line to the target point. When the distance threshold is met, there are no obstacles, and the angle offset is small, the user can be moved in a straight line. When these three conditions are met, it means that the user can already view most of the scene content between the points and there is no need to watch it anymore, so the user can directly reach the target point, shortening the movement time.

[0027] According to the two point movement modes of automatic path finding and straight line movement, the correct movement mode is selected at the right time to achieve adaptive movement between points.

[0028] In order to reduce the excessive rotation rate caused by the field of vision being controlled to face the positive direction when the user reaches the target point, the process of moving the user to the target point in a straight line also includes fixing the user's viewing angle direction. By fixing the user's viewing angle, the change of the user's viewing angle during the straight-line movement can be limited. Because it is mentioned above that the angle between the current user's field of vision direction and the positive direction is less than the angle offset threshold, after the user reaches the target point, the viewing angle direction only needs to be slightly rotated to be consistent with the positive direction of the target point. In this way, the user will not feel dizzy due to excessive or rapid rotation of the viewing angle.

[0029] In order to further optimize the user's sensory experience, the method also includes setting an angle offset threshold including a first threshold and a second threshold. If the angle does not exceed the first threshold, it is fixed according to the current field of view direction. If the angle exceeds the first threshold and does not exceed the second threshold, the current field of view direction is rotated to be consistent with the positive direction of the target point, and fixed according to the rotated field of view direction. For the case where the angle is very small, the current viewing angle can be fixed directly. For a slightly larger angle, you can choose to rotate the viewing angle to an angle consistent with the positive direction in advance. In this way, there will be no discomfort caused by rotating the viewing angle after reaching the target point, because the user is more familiar with the surrounding scene content at the current point. At this time, offsetting a certain angle belongs to adjusting the viewing angle of a familiar environment, while the scene content around the target point is unknown content. Adjusting the viewing angle after reaching the target point is an unfamiliar viewing angle. Comparing the two, the viewing angle of a familiar environment is not easy to cause discomfort.

[0030] Since there are multiple points in the displacement direction, the method for calculating the target point according to the displacement information is: Calculate the direction vector of the displacement direction; Obtaining left and right offset angles of the direction vector, wherein the left and right offset angles are used to determine the range of the displacement direction, and calculating the boundary vector of the displacement direction according to the left and right offset angles; Get all points between boundary vectors; Calculate the distance between all points and the current position, and select the point with the shortest distance as the target point. This method calculates the point with the shortest distance in the displacement direction as the target point. The calculation method is simple, error-prone, and highly accurate.

[0031] The method for enabling automatic pathfinding is: Enter the initial point and end point of automatic path finding, the initial point is the current position, and the end point is the target point; Bake the ground of the virtual scene to generate the navigation mesh; An optimal path is generated in the navigation grid, and the user is controlled to move along the optimal path. Automatic path finding in virtual scenes is a mature technical means, and some 3D engines are also equipped with automatic path finding systems, so the principle of automatic path finding will not be described in detail here.

[0032] The method for obtaining the obstacle detection result is: Sending a number of rays to the target point from the current position; Set the distance between the highest ray and the lowest ray to be consistent with the height of the user model; If the ray outputs a collision signal, then the result that there is an obstacle is outputted, and if no collision signal is outputted, then the result that there is no obstacle is outputted. Obstacle detection is a type of collision detection, which is widely used in the interaction of virtual scenes, so the detailed principle is not repeated here.

[0033] Example 2 An adaptive movement system between points in a step-by-step scene, the system comprising: A threshold setting unit, used to pre-set a distance threshold and an angle offset threshold; A displacement detection unit, used to obtain displacement information of the user, wherein the displacement information includes a displacement direction and a current field of view direction of the user; a point detection unit, configured to calculate a target point according to the displacement information, and obtain point information of the target point, wherein the point information includes a point distance between the target point and the current position, an obstacle detection result, and a positive direction, wherein the positive direction is a direction of the user's field of view when switching to the target point; A mobile control unit, used to calculate whether the distance between the points exceeds a distance threshold, and if so, start automatic path finding and set the target point as the end point of the automatic path finding; If not, the obstacle detection result is obtained. If there is an obstacle between the points, automatic path finding is started, and the target point is set as the end point of automatic path finding; If there is no obstacle between the points, then calculate the angle between the current user's field of view and the positive direction; If the angle exceeds the angle offset threshold, automatic path finding is started, and the target point is set as the end point of automatic path finding; If the angle does not exceed the angle deviation threshold, the user is moved along a straight line to the target point.

[0034] The process in which the mobile control unit moves the user along a straight line to the target point also includes fixing the user's viewing direction. The angle offset threshold set by the threshold setting unit includes a first threshold and a second threshold. If the angle does not exceed the first threshold, the current viewing direction is fixed. If the angle exceeds the first threshold but does not exceed the second threshold, the current viewing direction is rotated to be consistent with the positive direction of the target point, and the rotation is fixed according to the rotated viewing direction.

[0035] The method for calculating the target point position according to the displacement information is: Calculate the direction vector of the displacement direction; Obtaining left and right offset angles of the direction vector, wherein the left and right offset angles are used to determine the range of the displacement direction, and calculating the boundary vector of the displacement direction according to the left and right offset angles; Get all points between boundary vectors; Calculate the distance between all points and the current position, and select the point with the smallest distance as the target point.

[0036] The method for enabling automatic pathfinding is: Enter the initial point and end point of automatic path finding, the initial point is the current position, and the end point is the target point; Bake the ground of the virtual scene to generate the navigation mesh; An optimal path is generated in the navigation grid, and a user is controlled to move along the optimal path.

[0037] The method for obtaining the obstacle detection result is: Sending a number of rays to the target point from the current position; Set the distance between the highest ray and the lowest ray to be consistent with the height of the user model; If the ray outputs a collision signal, a result indicating that there is an obstacle is output; if the ray does not output a collision signal, a result indicating that there is no obstacle is output.

[0038] Embodiment 2 is essentially the same as Embodiment 1, so the specific working principles of each unit will not be described in detail.

[0039] Example 3 This embodiment proposes a storage medium, which includes a program storage area and a data storage area, wherein the program storage area can store an operating system and programs required for running instant messaging functions, etc.; the data storage area can store various instant messaging information and operation instruction sets, etc. The computer program is stored in the program storage area, and when the computer program is executed by the processor, the adaptive movement method between points in the step-by-step scene as described in Example 1 is implemented. The processor may include one or more central processing units, or a digital processing unit, etc.

[0040] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be considered exemplary and non-restrictive in all respects, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present invention.

[0041] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. An adaptive movement method between points in a step-by-step scene. It is characterized in that The method comprises the following steps: Pre-set distance threshold and angle offset threshold; Acquire user displacement information, where the displacement information includes a displacement direction and a current user's field of view direction; Calculate the target point according to the displacement information, and obtain the point information of the target point, wherein the point information includes the point distance between the target point and the current position, the obstacle detection result, and the positive direction, wherein the positive direction is the direction of the user's field of view when switching to the target point; Calculate whether the distance between the points exceeds the distance threshold, and if so, start automatic path finding and set the target point as the end point of automatic path finding; If not, the obstacle detection result is obtained. If there is an obstacle between the points, automatic path finding is started, and the target point is set as the end point of automatic path finding; If there is no obstacle between the points, then calculate the angle between the current user's field of view and the positive direction; If the angle exceeds the angle offset threshold, automatic path finding is started, and the target point is set as the end point of automatic path finding; If the angle does not exceed the angle deviation threshold, the user is moved along a straight line to the target point.

2. The method for adaptively moving points in a step-by-step scene according to claim 1, It is characterized in that The process of moving the user along a straight line to the target point also includes fixing the viewing direction of the user.

3. The method for adaptively moving between points in a step-by-step scene according to claim 2, It is characterized in that The method also includes setting an angle offset threshold including a first threshold and a second threshold. If the angle does not exceed the first threshold, it is fixed according to the current field of view direction. If the angle exceeds the first threshold and does not exceed the second threshold, the current field of view direction is rotated to be consistent with the positive direction of the target point, and fixed according to the rotated field of view direction.

4. The method for adaptively moving between points in a step-by-step scene according to claim 1, It is characterized in that The method for calculating the target point position according to the displacement information is: Calculate the direction vector of the displacement direction; Obtaining left and right offset angles of the direction vector, wherein the left and right offset angles are used to determine the range of the displacement direction, and calculating the boundary vector of the displacement direction according to the left and right offset angles; Get all points between boundary vectors; Calculate the distance between all points and the current position, and select the point with the smallest distance as the target point.

5. The method for adaptively moving between points in a step-by-step scene according to claim 1, It is characterized in that The method for enabling automatic pathfinding is: Enter the initial point and end point of automatic path finding, the initial point is the current position, and the end point is the target point; Bake the ground of the virtual scene to generate the navigation mesh; An optimal path is generated in the navigation grid, and a user is controlled to move along the optimal path.

6. The method for adaptively moving between points in a step-by-step scene according to claim 1, It is characterized in that The method for obtaining the obstacle detection result is: Sending a number of rays to the target point from the current position; Set the distance between the highest ray and the lowest ray to be consistent with the height of the user model; If the ray outputs a collision signal, a result indicating that there is an obstacle is output; if the ray does not output a collision signal, a result indicating that there is no obstacle is output.

7. An adaptive movement system between points in a step-by-step scene, It is characterized in that The system includes: A threshold setting unit, used to pre-set a distance threshold and an angle offset threshold; A displacement detection unit, used to obtain displacement information of the user, wherein the displacement information includes a displacement direction and a current field of view direction of the user; a point detection unit, configured to calculate a target point according to the displacement information, and obtain point information of the target point, wherein the point information includes a point distance between the target point and the current position, an obstacle detection result, and a positive direction, wherein the positive direction is a direction of the user's field of view when switching to the target point; A mobile control unit, used to calculate whether the distance between the points exceeds a distance threshold, and if so, start automatic path finding and set the target point as the end point of the automatic path finding; If not, the obstacle detection result is obtained. If there is an obstacle between the points, automatic path finding is started, and the target point is set as the end point of automatic path finding; If there is no obstacle between the points, then calculate the angle between the current user's field of view and the positive direction; If the angle exceeds the angle offset threshold, automatic path finding is started, and the target point is set as the end point of automatic path finding; If the angle does not exceed the angle deviation threshold, the user is moved along a straight line to the target point.

8. The adaptive movement system between points in a step-by-step scene according to claim 7, It is characterized in that The process in which the mobile control unit moves the user along a straight line to the target point also includes fixing the viewing direction of the user.

9. The adaptive movement system between points in a step-by-step scene according to claim 7, It is characterized in that The angle offset threshold set by the threshold setting unit includes a first threshold and a second threshold. If the angle does not exceed the first threshold, it is fixed according to the current field of view direction. If the angle exceeds the first threshold and does not exceed the second threshold, the current field of view direction is rotated to be consistent with the positive direction of the target point, and is fixed according to the rotated field of view direction.

10. A storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method for adaptively moving between points in a step-by-step scene as described in any one of claims 1-6 is implemented.

Citation Information

Patent Citations

  • Interface display method, device and equipment and storage medium

    CN112121422A

  • Display control method and device, electronic equipment and storage medium

    CN115193042A

  • Virtual character movement control method and device, equipment and storage medium

    CN115738270A

  • Virtual object control method and device, storage medium and electronic equipment

    CN117298585A