Mobile control method and device for VR (virtual reality) game, intelligent terminal and storage medium

文档序号:754051 发布日期:2021-04-06 浏览:40次 中文

阅读说明:本技术 Vr游戏的移动控制方法、装置、智能终端及存储介质 (Mobile control method and device for VR (virtual reality) game, intelligent terminal and storage medium ) 是由 曾伟峰 陈镔镔 于 2020-12-16 设计创作,主要内容包括:本发明公开了一种VR游戏的移动控制方法、装置、智能终端及存储介质,所述方法包括:获取游戏用户的身体移动数据,所述身体移动数据用于反映所述游戏用户的身体位置变化;根据所述身体移动数据,确定所述游戏用户的身体运动信息;根据所述身体运动信息,控制游戏终端中的游戏人物移动。本发明基于检测用户的身体移动数据对VR游戏人物进行操作,旨在解决现有技术中通过按键或摇杆操作不能很好地对人物进行控制,操作繁琐,且呈现的效果不佳的问题。(The invention discloses a mobile control method and a mobile control device for a VR game, an intelligent terminal and a storage medium, wherein the method comprises the following steps: acquiring body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user; determining body movement information of the game user according to the body movement data; and controlling the game character in the game terminal to move according to the body motion information. The invention operates VR game characters based on body movement data of a user, and aims to solve the problems that the characters cannot be well controlled through key or rocker operation, the operation is complicated, and the presented effect is poor in the prior art.)

1. A movement control method for a VR game, the method comprising:

acquiring body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user;

determining body movement information of the game user according to the body movement data;

and controlling the game character in the game terminal to move according to the body motion information.

2. The movement control method of the VR game of claim 1, wherein the obtaining body movement data of a game user includes:

acquiring position data between a preset trunk infrared sensor and a preset wearable infrared sensor, wherein the wearable infrared sensor is arranged on the body of a game user;

determining movement data of the wearable infrared sensor relative to the torso infrared sensor according to the position data;

and determining body movement data of the game user according to the movement data.

3. The movement control method of the VR game of claim 2, wherein there are three torso infrared sensors, and the three torso infrared sensors form a regular triangle having a central point that is a central base point of the three torso infrared sensors.

4. The method of movement control of the VR game of claim 3, wherein the three torso infrared sensors are disposed at a same height as the wearable infrared sensors.

5. The movement control method of the VR game of claim 4, wherein two wearable infrared sensors are provided, and a midpoint of a connecting line of the two wearable infrared sensors is a current position point of the game user.

6. The method of movement control of the VR game of claim 5, wherein the determining movement data of the wearable infrared sensor relative to the torso infrared sensor based on the position data comprises:

acquiring position coordinates of the middle points of the two wearing infrared sensors and position coordinates of the central point of a regular triangle formed by the three trunk infrared sensors;

and determining the movement data of the wearable infrared sensors relative to the trunk infrared sensors according to the position coordinates of the middle points of the two wearable infrared sensors and the position coordinates of the central point of the regular triangle.

7. The movement control method of the VR game of claim 1, wherein the determining body movement information of the game user from the body movement data includes:

determining the body movement direction, the body movement mode and the body orientation information of the game user according to the body movement data;

and determining the body motion information of the game user according to the body moving direction, the body moving mode and the body orientation information.

8. A movement control apparatus for a VR game, the apparatus being connected to a display terminal, the apparatus comprising: the bottom base is connected with the trunk infrared sensor and the wearable infrared sensor and used for receiving data of the trunk infrared sensor and the wearable infrared sensor and performing data processing;

the device further comprises:

the position change information acquisition module is used for acquiring body movement data of a game user by the user, wherein the body movement data is used for reflecting the body position change of the game user;

the body movement information acquisition module is used for determining the body movement information of the game user according to the body movement data;

and the game character movement control module is used for controlling the movement of the game characters in the game terminal according to the body movement information.

9. An intelligent terminal, characterized in that the intelligent terminal comprises a memory, a processor and a movement control program of a VR game stored on the memory and executable on the processor, and the movement control program of the VR game is executed by the processor to realize the steps of the movement control method of the VR game according to any one of claims 1 to 7.

10. A computer-readable storage medium having stored thereon a movement control program for a VR game, the movement control program for the VR game when executed by a processor implementing the steps of the movement control method for the VR game as claimed in any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of VR game control, in particular to a mobile control method and device of a VR game, an intelligent terminal and a storage medium.

Background

In the age of more and more mature VR technology, VR games are also developing better and better. In the prior art, the action modes of characters in a part of VR games are controlled by keys or joysticks. The person can not be well controlled through the operation of the keys or the rocker, the operation is complicated, and the presented effect is not good.

Thus, there is a need for improvements and enhancements in the art.

Disclosure of Invention

The invention provides a movement control method and device for a VR game, an intelligent terminal and a storage medium, aiming at solving the problems that characters cannot be well controlled through key or rocker operation, operation is complex and the presented effect is poor in the prior art.

In order to solve the technical problems, the technical scheme adopted by the invention is as follows:

in a first aspect, the present invention provides a movement control method for a VR game, wherein the method includes:

acquiring body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user;

determining body movement information of the game user according to the body movement data;

and controlling the game character in the game terminal to move according to the body motion information.

In one implementation, the obtaining body movement data of the game user includes:

acquiring position data between a preset trunk infrared sensor and a preset wearable infrared sensor, wherein the wearable infrared sensor is arranged on the body of a game user;

determining movement data of the wearable infrared sensor relative to the torso infrared sensor according to the position data;

and determining body movement data of the wearing user according to the movement data.

In one implementation, the trunk infrared sensors are three, the three trunk infrared sensors form a regular triangle, and the central point of the regular triangle is the central base point of the three trunk infrared sensors.

In one implementation, the three torso infrared sensors are disposed at the same height as the wearable infrared sensors.

In one implementation mode, the wearing infrared sensors are two, and the middle point of the connecting line of the two wearing infrared sensors is the current position point of the game user.

In one implementation, the determining movement data of the wearable infrared sensor relative to the torso infrared sensor from the location data includes:

acquiring position coordinates of the middle points of the two wearing infrared sensors and position coordinates of the central point of a regular triangle formed by the three trunk infrared sensors;

and determining the movement data of the wearable infrared sensors relative to the trunk infrared sensors according to the position coordinates of the middle points of the two wearable infrared sensors and the position coordinates of the central point of the regular triangle.

In one implementation, the determining body movement information of the game user according to the body movement data includes:

determining body movement direction, body movement mode and body orientation information of the game user according to the body movement data;

and determining the body motion information of the game user according to the body moving direction, the body moving mode and the body orientation information.

In a second aspect, the present invention provides a movement control apparatus for a VR game, wherein the apparatus is connected to a display terminal, the apparatus comprising: the bottom base is connected with the drying infrared sensor and the wearing infrared sensor and is used for receiving data of the trunk infrared sensor and the wearing infrared sensor and performing data processing;

in one implementation, the apparatus further comprises:

the position change information acquisition module is used for acquiring body movement data of a game user by the user, wherein the body movement data is used for reflecting the body position change of the game user;

the body movement information acquisition module is used for determining the body movement information of the game user according to the body movement data;

and the game character movement control module is used for controlling the movement of the game characters in the game terminal according to the body movement information.

In a third aspect, the present invention provides an intelligent terminal, where the intelligent terminal includes a memory, a processor, and a movement control program of a VR game stored in the memory and executable on the processor, and when the movement control program of the VR game is executed by the processor, the steps of the movement control method of the VR game in any one of the above aspects are implemented.

In a fourth aspect, the present invention provides a computer-readable storage medium, on which a movement control program of a VR game is stored, the movement control program of the VR game, when executed by a processor, implementing the steps of the movement control method of the VR game according to any one of the above aspects.

Has the advantages that: compared with the prior art, the invention firstly obtains body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user; determining body movement information of the game user according to the body movement data; and controlling the game character in the game terminal to move according to the body motion information. The invention realizes the operation of VR game characters by detecting body movement data of a user, and compared with the prior art, the invention aims to solve the problems that the characters cannot be well controlled through key or rocker operation, the operation is complicated and the presented effect is poor in the prior art.

Drawings

Fig. 1 is an overall structure diagram of a torso sensor and a wearing sensor provided in an embodiment of the present invention

Fig. 2 is a top view of a torso sensor and a wearable sensor provided in an embodiment of the present invention

Fig. 3 is a flowchart of a specific implementation of a movement control method of a VR game according to an embodiment of the present invention.

Fig. 4 is a flowchart of acquiring user movement data of a movement control method of a VR game according to an embodiment of the present invention.

Fig. 5 is a flowchart of determining body movement information of a game user in a movement control method for a VR game according to an embodiment of the present invention.

Fig. 6 is a functional block diagram of a movement control apparatus of a VR game according to an embodiment of the present invention.

Fig. 7 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

In the age of more and more mature VR technology, VR games are also developing better and better. In the prior art, the action modes of characters in a part of VR games are controlled by keys or joysticks. The person can not be well controlled through the operation of the keys or the rocker, the operation is complicated, and the presented effect is not good.

In order to solve the problems in the prior art, the embodiments provide a movement control method and apparatus for a VR game, an intelligent terminal, and a storage medium, which can convert movement data of a game user into a control signal for a character in the VR game by detecting the movement data of the game user, so as to control the VR game character by the body of the game user. During specific implementation, a peripheral trunk infrared sensor and a wearing infrared sensor of a game user are preset, the two sensors are matched together to obtain body movement data of the game user, the body movement data of the game user is converted into body movement information through calculation of an algorithm, and the body movement information is mapped in a VR game and used for controlling game characters in a game terminal to move.

For example, as shown in fig. 1 and fig. 2, when the game user uses the present invention, the VR game character can be controlled by the body movement, the detection device needs to be configured in advance for detecting the body movement of the game user, namely, the peripheral trunk infrared sensor A, B, C is arranged on the periphery, and the wearing infrared sensor D, E is arranged on the waist of the game user, the two sensors are arranged at the same height, the trunk infrared sensor can form a detection area, in the detection area, if the game user moves, the trunk infrared sensor and the wearing infrared sensor are matched with each other to detect and acquire body movement data of the game user, the body movement data is converted into body movement information of a game user through a certain algorithm, the body movement information is mapped into the game terminal, and the game terminal controls VR game characters to perform corresponding operations according to the body movement information.

Exemplary method

The movement control method for the VR game provided by this embodiment may be applied to a VR game terminal, and specifically as shown in fig. 3, the method includes the following steps:

step S100, obtaining body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user;

when the game user applies the invention, the body controls the VR game character, the detection device needs to detect the body movement data of the game user, the body movement data of the game user can reflect the body position change information of the game user, therefore, the body movement data needs to be parameterized to obtain accurate body position change information of the game user, so that a coordinate system can be established to position the sensor and the game user, when the game user moves, the body position change information can be obtained according to the body movement data of the game user through coordinate operation, and in the subsequent process, the body position change information only needs to be converted into information which can be understood by the game terminal through algorithm, and the control of the game character by the body can be completed.

In one implementation, as shown in fig. 4, the step S100 specifically includes the following steps:

s101, acquiring position data between a preset trunk infrared sensor and a preset wearing infrared sensor, wherein the wearing infrared sensor is arranged on the body of a game user;

s102, determining the movement data of the wearable infrared sensor relative to the trunk infrared sensor according to the position data;

s103, determining body movement data of the wearing user according to the movement data.

During specific implementation, a detection device is preset to detect body movement, the detection device comprises a trunk infrared sensor and a wearable infrared sensor, the trunk infrared sensor and the wearable infrared sensor are as shown in fig. 1 and fig. 2, three A, B and C of the trunk infrared sensor are arranged on the edge of a concentric circle, a connecting line of the three trunk infrared sensors forms a regular triangle, a central point P of the regular triangle is a central base point of the three trunk infrared sensors, the central base point can be used for judging the body offset of a game user, the heights of the three trunk infrared sensors are the same as the height of the waist, meanwhile, the concentric circle is equivalent to a detection area, and the game user needs to move in the concentric circle area to control VR game characters. Wearing infrared sensor has two D and E, sets up the both sides at recreation user's waist, and two mid points Q of wearing infrared sensor line are recreation user's current position point to two are dressed infrared sensor and trunk infrared sensor and are the same height, need distinguish about.

In an implementation method, after a trunk infrared sensor and a wearing infrared sensor are arranged, two sensors are matched together to start to detect mobile data of a game user, firstly, position data between the trunk infrared sensor and a preset wearing infrared sensor needs to be determined, specifically, as shown in fig. 2, three trunk infrared sensors a, B and C form a satellite-like triangulation system, the three trunk infrared sensors detect distances between every two sensors, namely three side lengths AB, BC and AC of a formed triangle are detected, then the sensor a is used as an origin of a plane rectangular coordinate system, and AB is used as a reference axis (namely an X axis) to form the plane rectangular coordinate system, wherein AC indicates the positive direction of a Y axis in the plane rectangular coordinate system, but does not coincide with the Y axis. When a plane rectangular coordinate system is established, the coordinates of each sensor can be determined, such as: a (0,0), B (X2,0), C (X3, Y3), D (X4, Y4) and E (X5, Y5), so that after the trunk infrared sensor and the wearing infrared sensor mutually detect the distance, a plane rectangular coordinate system is used for representation, and the position data between the trunk infrared sensor and the wearing infrared sensor can be acquired.

In an implementation method, after position data between a trunk infrared sensor and a wearable infrared sensor is acquired, movement data of the wearable infrared sensor relative to the trunk infrared sensor can be determined, and particularly calculation needs to be performed according to an established rectangular plane coordinate system, as shown in fig. 2, a midpoint coordinate of two wearable infrared sensors is Q ((X4+ X5)/2, (Y4+ Y5)/2), a central point coordinate of a regular triangle formed by three trunk infrared sensors is P (X, Y), when a game user moves, Q moves relative to P, and a coordinate change value is obtained by mathematical calculation, so that the movement data of the wearable infrared sensor relative to the trunk infrared sensor can be determined.

In other implementation manners, as shown in fig. 2, according to the movement data of the wearing infrared sensor relative to the trunk infrared sensor, that is, the variation value of Q relative to P, the variation value is integrated into the normalization process, that is, the body movement data of the game user can be determined according to the variation value.

Step S200, determining body movement information of the game user according to the body movement data;

after the body movement data is acquired, the offset of the game user relative to the centers of the three trunk infrared sensors can be clearly known through calculation and normalization processing, so that the body movement direction, the body movement mode and the body orientation information of the game user can be determined through the size and the direction of the offset, and the body movement information of the game user can be confirmed through combination and parameter normalization of the information.

In one implementation, as shown in fig. 5, the step S200 specifically includes the following steps:

s201, determining the body movement direction, the body movement mode and the body orientation information of the game user according to the body movement data;

s202, determining body motion information of the game user according to the body moving direction, the body moving mode and the body orientation information.

In specific implementation, as shown in fig. 2, after central reference points P (x, y) of three infrared torso sensors and a central point Q ((x4+ x5)/2, (y4+ y5)/2) of the current position of the game user are obtained according to the body movement data obtained in the previous step and the established planar rectangular coordinate system, a vector PQ ((x4+ x5)/2-x, (y4+ y5)/2-y) is calculated and used as the position deviation of the game user relative to the central reference points, that is, the orientation of the game user is obtained. After the value of the vector PQ is obtained, the magnitude of the offset is used for judging whether the state is a static state, a slow walking state, a normal walking state, a jogging state, a running state or the like, and a specific moving mode can be set according to the game. The moving direction of the game user at this time is determined according to the angle between the vectors PQ and QQ', such as: 0 ° means forward movement, 90 ° means left or right movement, and 180 ° means backward movement. And integrating the obtained body movement direction, body movement mode and body orientation information together and carrying out normalization processing to obtain the body movement information of the game user.

And step S300, controlling the game character in the game terminal to move according to the body motion information.

And (3) inputting the body movement information obtained after detection and data processing into the game terminal through data format conversion, analyzing and processing the information by the game terminal to obtain corresponding VR game character control information, and operating the game control information to control the movement of the game characters in the game terminal, thereby completing the process of controlling the game characters through body changes.

In summary, in this embodiment, three trunk infrared sensors and two wearable infrared sensors are preset, and a triangular coordinate is established in a set trunk infrared sensor area for positioning a position of a game user, when the game user uses the present invention, the trunk infrared sensors and the wearable infrared sensors cooperate to obtain movement data of the game user and represent the movement data with the coordinate, the movement data is integrated and normalized to obtain body movement information of the game user, the body movement information is transmitted to the game terminal, and the game terminal controls a VR game character to move according to the body movement information, so that an effect of operating the VR game character based on the body movement data of the game user is achieved, and the operation of the game character is more sensitive and convenient.

Exemplary device

As shown in fig. 1, an embodiment of the present invention provides a movement control apparatus for a VR game, where the apparatus is connected to a display terminal, and the apparatus includes: the infrared sensor type medical instrument comprises a bottom base 01, a trunk infrared sensor 02 and a wearable infrared sensor 03, wherein the trunk infrared sensor 02 and the wearable infrared sensor 03 are arranged on the bottom base 01, and the bottom base 01 is connected with the trunk infrared sensor 02 and the wearable infrared sensor 03 and is used for receiving data of the trunk infrared sensor 02 and the wearable infrared sensor 03 and performing data processing;

in one implementation, as shown in fig. 6, a movement control apparatus of a VR game further includes: a position change information obtaining module 10, wherein a user obtains body movement data of a game user, and the body movement data is used for reflecting the body position change of the game user; a body movement information obtaining module 20, configured to determine body movement information of the game user according to the body movement data; and the game character movement control module 30 is used for controlling the movement of the game characters in the game terminal according to the body motion information.

Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 7. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a laser sensing based interactive control method. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is arranged inside the intelligent terminal in advance and used for detecting the operating temperature of internal equipment.

It will be understood by those skilled in the art that the block diagram of fig. 7 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.

In one embodiment, an intelligent terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:

acquiring body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user;

determining body movement information of the game user according to the body movement data;

and controlling the game character in the game terminal to move according to the body motion information.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

In summary, the invention discloses a movement control method, a movement control device, an intelligent terminal and a storage medium for a VR game, wherein the method comprises the following steps: acquiring body movement data of a game user, wherein the body movement data is used for reflecting the body position change of the game user; determining body movement information of the game user according to the body movement data; and controlling the game character in the game terminal to move according to the body motion information. The invention operates VR game characters based on body movement data of a user, and aims to solve the problems that the characters cannot be well controlled through key or rocker operation, the operation is complicated, and the presented effect is poor in the prior art.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据驱动的游戏系统功能加载方法、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类