Action interaction method and device for virtual scene, equipment, medium and program product
The electromagnetic generation device simulates the user's stress in the virtual scene, solving the problem that the user cannot perceive the weight of the virtual item, improving the immersion and interactive experience, and achieving rich simulated stress in different scenarios.
Patent Information
- Application Number
- CN202411204479.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-12
AI Technical Summary
In extended reality technology, users can only interact with input through the handle and cannot perceive the weight of items in the virtual scene, resulting in poor immersion experience.
By detecting user behavior and virtual handle position information, the electromagnetic generator is used to simulate the user's stress situation, including controlling the electromagnet to simulate the stress situation in the target behavior, establishing a coordinate system to analyze the type and direction of the stress, and based on the target item information, Analyze the stress.
It improves the user's immersive experience, provides a richer simulation of stress conditions, allowing users to more realistically perceive the weight and characteristics of virtual items, frees up space limitations, and supports the interaction between dynamic items and dynamic actions.
Smart Images

Figure CN118925228A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of extended reality technology, and in particular to a method, device, equipment, medium and program product for action interaction in a virtual scene. Background Art
[0002] In the world of extended reality (XR), users can only interact with input through handles or remote controls. When using XR devices, users usually only feel the weight of the handles and cannot perceive the weight of virtual objects based on the user's behavior in the virtual scene, resulting in a poor user immersion experience. Summary of the invention
[0003] The embodiments of the present application provide a method, device, equipment, medium and program product for action interaction in a virtual scene to solve the problem that the existing method can only sense the weight of a handle but cannot perceive the weight of a virtual object according to the user's behavior in the virtual scene.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for action interaction in a virtual scene, comprising:
[0006] Detecting the target behavior of the target user in the virtual scene, and obtaining the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs;
[0007] Analyzing the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior;
[0008] The force condition of the target user is simulated by the electromagnetic generating device and the virtual handle.
[0009] Optionally, the electromagnetic generating device includes a plurality of electromagnets, and the virtual handle includes a magnetic force sensing device;
[0010] The force condition of the target user is simulated by the electromagnetic generating device and the virtual handle, including:
[0011] The force condition of the target behavior is simulated by controlling at least one electromagnet among the plurality of electromagnets.
[0012] Optionally, simulating the force condition of the target behavior by controlling at least one electromagnet among the plurality of electromagnets includes:
[0013] Determine a minimum electromagnet set having the least number of electromagnets that can achieve the force condition;
[0014] The electromagnets in the minimum electromagnet set are turned on, wherein the resultant force generated on the virtual handle after the electromagnets in the minimum electromagnet set are turned on simulates the magnitude and direction of the target force in the force condition of the target behavior.
[0015] Optionally, after detecting the target behavior of the target user in the virtual scene and acquiring the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs, the method further includes:
[0016] Establishing a vertical and horizontal coordinate system with the target user as the origin according to the position information of the virtual handle and the position information of the electromagnetic generating device;
[0017] The force type of the target behavior is analyzed according to the coordinate system, and the force direction and force magnitude of the force type are constructed in the coordinate system.
[0018] Optionally, analyzing the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior includes:
[0019] Acquire target item information corresponding to when the target user performs the target behavior, the target item information including at least one of the following: weight, length and material;
[0020] The center of gravity position of the target object is analyzed according to the position information of the virtual handle, the position information of the electromagnetic generating device, the target behavior and the target object information, and the force condition of the target user is analyzed according to the center of gravity position of the target object.
[0021] Optionally, the force condition includes gravity and at least one of the following forces: inertia and pressure.
[0022] In a second aspect, an embodiment of the present application provides a motion interaction device for a virtual scene, comprising:
[0023] An acquisition module, used to detect the target behavior of the target user in the virtual scene, and to acquire the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs;
[0024] A force analysis module, used to analyze the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior;
[0025] The force simulation module is used to simulate the force condition of the target user through the electromagnetic generating device and the virtual handle.
[0026] Optionally, the electromagnetic generating device includes a plurality of electromagnets, and the virtual handle includes a magnetic force sensing device;
[0027] The force simulation module comprises:
[0028] The force simulation submodule is used to simulate the force condition of the target behavior by controlling at least one electromagnet among the multiple electromagnets.
[0029] Optionally, the force simulation submodule includes:
[0030] A first processing submodule is used to determine a minimum electromagnet set having the least number of electromagnets that can achieve the force condition;
[0031] The second processing submodule is used to turn on the electromagnets in the minimum electromagnet set, wherein the resultant force generated on the virtual handle after turning on the electromagnets in the minimum electromagnet set simulates the size and direction of the target force in the force condition of the target behavior.
[0032] Optionally, also include:
[0033] A first processing module, configured to establish a vertical and horizontal plane coordinate system with the target user as the origin according to the position information of the virtual handle and the position information of the electromagnetic generating device;
[0034] The second processing module is used to analyze the force type of the target behavior according to the coordinate system, and construct the force direction and force magnitude of the force type in the coordinate system.
[0035] Optionally, the force analysis module includes:
[0036] An acquisition submodule, used to acquire target item information corresponding to when the target user performs the target behavior, wherein the target item information includes at least one of the following: weight, length and material;
[0037] The third processing submodule is used to analyze the center of gravity position of the target object according to the position information of the virtual handle, the position information of the electromagnetic generating device, the target behavior and the target object information, and analyze the force condition of the target user according to the center of gravity position of the target object.
[0038] Optionally, the force condition includes gravity and at least one of the following forces: inertia and pressure.
[0039] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the action interaction method for a virtual scene as described in any one of the first aspects.
[0040] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the action interaction method for a virtual scene as described in any one of the first aspects are implemented.
[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the action interaction method for a virtual scene as described in any one of the first aspects.
[0042] In the present application, the target behavior of the target user in the virtual scene, as well as the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs are obtained, so as to analyze the force conditions of the user in different directions according to the user's behavior in the virtual scene; the force conditions of the target user are analyzed according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior; the force conditions of the target user are simulated by the electromagnetic generating device and the virtual handle, and by detecting and simulating the combined force conditions of the user's behavior in the virtual scene, it is achieved to provide the user with richer simulated force conditions in different scenarios, improve the user's immersive experience, and solve the existing problem of only being able to feel the weight of the handle but not being able to perceive the weight of the virtual object according to the user's behavior in the virtual scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0044] Figure 1 is a flow chart of a method for action interaction in a virtual scene provided in an embodiment of the present application;
[0045] Figure 2 It is a schematic diagram of an electromagnetic generating device of a virtual scene action interaction method provided in an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of force analysis of a method for action interaction in a virtual scene provided in an embodiment of the present application;
[0047] Figure 4 It is an interactive simulation schematic diagram of an action interaction method of a virtual scene provided in an embodiment of the present application;
[0048] Figure 5 It is an interactive simulation schematic diagram of another action interaction method of a virtual scene provided in an embodiment of the present application;
[0049] Figure 6 It is a structural schematic diagram of a motion interaction device for a virtual scene provided in an embodiment of the present application;
[0050] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] Please refer to Figure 1 , the embodiment of the present application provides a method for action interaction of a virtual scene, comprising:
[0053] Step 11: Detecting the target behavior of the target user in the virtual scene, and obtaining the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs;
[0054] In the embodiment of the present application, when it is detected that the target user uses an XR device, the virtual scene and target behavior of the target user are detected;
[0055] Specifically, when it is detected that the target user stands on the electromagnetic generating device, the device is powered on and the electromagnet begins self-detection; wherein, the method of establishing a coordinate system through the electromagnet uses general equipment instead of customized equipment, thereby improving the feasibility of production and promotion; and facilitating subsequent force analysis, thereby providing users with richer simulated force conditions in different scenarios and improving the user's immersive experience; and freeing themselves from the fixed restrictions of space and venue, so that users can move freely in the arranged electromagnet field.
[0056] Step 12: analyzing the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior;
[0057] In an embodiment of the present application, the force conditions of the target user in the current state are analyzed based on the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior, and the magnets in the electromagnetic generating device are grouped based on the force conditions, and the magnitude and direction of the forces simulated by the magnets in different groups are determined, thereby increasing the scope of interaction from being limited to interaction with static objects to supporting interaction and simulation of dynamic objects and dynamic actions.
[0058] Step 13: Simulate the force condition of the target user through the electromagnetic generating device and the virtual handle.
[0059] In the embodiment of the present application, according to the different interactive behaviors of the target user, different forces are applied and simulated through the magnetic field of the electromagnetic generating device, so that when the target user uses the XR device, when it involves partial interaction, an attraction or repulsion of corresponding weight can be generated according to the mass and characteristics of the object; in addition, in addition to using electromagnets, force can also be generated by tightening or loosening the traction rope, and filling or extracting buoyant gas, thereby providing users with richer simulated force conditions in different scenarios and improving the user's immersive experience.
[0060] In an embodiment of the present application, the target behavior of the target user in the virtual scene, as well as the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs are obtained, so as to analyze the force conditions of the user in different directions according to the user's behavior in the virtual scene; the force conditions of the target user are analyzed according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior; the force conditions of the target user are simulated by the electromagnetic generating device and the virtual handle, and by detecting and simulating the combined force conditions of the user's behavior in the virtual scene, it is achieved to provide the user with richer simulated force conditions in different scenarios, improve the user's immersive experience, and solve the existing problem of only being able to feel the weight of the handle but not being able to perceive the weight of the virtual object according to the user's behavior in the virtual scene.
[0061] In the embodiment of the present application, optionally, the electromagnetic generating device includes a plurality of electromagnets, and the virtual handle includes a magnetic force sensing device;
[0062] The force condition of the target user is simulated by the electromagnetic generating device and the virtual handle, including:
[0063] The force condition of the target behavior is simulated by controlling at least one electromagnet among the plurality of electromagnets.
[0064] In the present application, please refer to Figure 2 The electromagnetic generating device includes a plurality of electromagnets, and the electromagnets generate force through the magnetic force sensing device on the virtual handle, thereby simulating the force condition of the target behavior.
[0065] In the embodiment of the present application, optionally, simulating the force condition of the target behavior by controlling at least one electromagnet among the plurality of electromagnets includes:
[0066] Determine a minimum electromagnet set having the least number of electromagnets that can achieve the force condition;
[0067] The electromagnets in the minimum electromagnet set are turned on, wherein the resultant force generated on the virtual handle after the electromagnets in the minimum electromagnet set are turned on simulates the magnitude and direction of the target force in the force condition of the target behavior.
[0068] In the embodiment of the present application, firstly, the magnitude and vector relationship between the power of each electromagnet and the electromagnetic force generated is established;
[0069] Determine a minimum electromagnet set of the least number of electromagnets that can achieve the force condition; for example: first set the first minimum electromagnet set to generate a virtual gravity that is vertically downward, and mark the set as g;
[0070] The second smallest electromagnet set is set to simulate the horizontal force and is labeled as s; e; w; n;
[0071] Set the third smallest electromagnet set to simulate the upward force. In this case, the electromagnet needs to be placed on the wall or ceiling, etc., at a location higher than the handle.
[0072] For specific force combinations, such as Figure 3 As shown, taking two electromagnets as an example, the magnetic force generated by the left magnet is F1, and the magnetic force generated by the right magnet is F2. The resultant force F3 generated by them is the resultant force of the plane where F1 and F2 are located. The offset angle is Figure 3 As shown;
[0073] When the number of magnets is greater than 2, the combination method is the same as the above method, but it becomes a combination of multiple forces. The final combined force will offset most of the horizontal force, and the remaining vertical force, and the remaining force F3 is the force ultimately required by the target user;
[0074] For example, when a force of F3=10N is required, the magnet close to the target user is first operated to combine F3_1 with a stronger force, and then the magnet at a slightly farther position is operated to combine F3_2 with a weaker force, and then the other electromagnets at farther positions are operated one by one, and finally F3_1+F3_2+…F3_N=F3; when F3 is confirmed, the currently operating electromagnet group is marked as group g, which is responsible for simulating gravity. When the weight of the object is subsequently simulated, the power of the magnets in group g changes;
[0075] The grouping and operation rules of other groups of magnets are the same as above, such as Figure 2As shown, the directions of the interaction forces between the magnets at different positions and the handles are different, thereby simulating forces in different directions. Since the magnetic force applied to the user is a combination of multiple forces, the force applied to the user does not change much when the user moves slightly in the magnetic field. The use of general equipment instead of customized equipment improves the feasibility of production and promotion; and facilitates subsequent force analysis, thereby providing users with richer simulated force conditions in different scenarios and improving the user's immersive experience; and freeing the fixed restrictions of space and venue, the user can move freely in the arranged electromagnet field.
[0076] In the embodiment of the present application, optionally, after detecting the target behavior of the target user in the virtual scene and obtaining the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs, the method further includes:
[0077] Establishing a vertical and horizontal coordinate system with the target user as the origin according to the position information of the virtual handle and the position information of the electromagnetic generating device;
[0078] The force type of the target behavior is analyzed according to the coordinate system, and the force direction and force magnitude of the force type are constructed in the coordinate system.
[0079] In the embodiment of the present application, the specific coordinate system is established as follows:
[0080] First, establish the magnitude and vector relationship between the power of each electromagnet and the electromagnetic force generated;
[0081] Determine a minimum electromagnet set of the least number of electromagnets that can achieve the force condition; for example: first set the first minimum electromagnet set to generate a virtual gravity that is vertically downward, and mark the set as g;
[0082] The second smallest electromagnet set is set to simulate the horizontal force and is labeled as s; e; w; n;
[0083] Set the third smallest electromagnet set to simulate the upward force. In this case, the electromagnet needs to be placed on the wall or ceiling, etc., at a location higher than the handle.
[0084] By setting up the coordinate system, the force direction and magnitude of various types of forces can be analyzed and calculated more clearly, providing users with richer simulated force conditions in different scenarios and improving the user's immersive experience; it also liberates the fixed restrictions of space and venue, allowing users to move freely in the arranged electromagnet field.
[0085] In the embodiment of the present application, optionally, analyzing the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior includes:
[0086] Acquire target item information corresponding to when the target user performs the target behavior, the target item information including at least one of the following: weight, length and material;
[0087] The center of gravity position of the target object is analyzed based on the position information of the virtual handle, the position information of the electromagnetic generating device, the target behavior and the target object information, and the force condition of the target user is analyzed based on the center of gravity position of the target object, wherein the force condition includes gravity and at least one of the following forces: inertia and pressure.
[0088] In an embodiment of the present application, different forces are applied and simulated through the magnetic field of the electromagnetic generating device according to different interactive behaviors of the target user, so that when the target user uses the XR device, when some interactions are involved, an attraction or repulsion of corresponding weight can be generated according to the weight and characteristics of the object (such as length and material); in addition, in addition to using electromagnets, force can also be generated by tightening or loosening the traction rope, and filling or extracting buoyant gas, thereby providing users with richer simulated force conditions in different scenarios and improving the user's immersive experience.
[0089] For details, please refer to Figure 4 , scenes of lifting heavy or light objects:
[0090] When the target user needs to lift a bucket in the XR world, the target object is analyzed to be a heavy object, made of iron or wood, and the cursor is moved to the handle of the bucket, and the button on the handle is pressed, which is recognized as a grabbing action. At this time, when the target user moves the handle vertically upward, if it exceeds the modeling position of the bucket, the electromagnet starts to work and generates a vertical downward magnetic force. Due to the material of the handle, the attraction it receives greatly increases, and the final attraction is the mapping quality of the virtual object bucket in the real world.
[0091] If the user picks up a light object, such as a feather, the target object is analyzed as a light object, the cursor is moved to the feather position, and the handle button is pressed, which is recognized as a grabbing action. However, the magnetic force generated is a repulsive force, so the mass of the handle becomes lighter, and the final attraction is the mapped mass of the virtual object feather in the real world.
[0092] When the user uses the device outside the magnetic generator and within the range of the magnetic force, the magnetic force attenuates, and the magnitude and vector of the magnetic force sensed in the handle change. The power and direction of the magnetic generator are then modified, and the final resultant magnetic force is vertically downward, ensuring that the user experience is completely consistent within the available range.
[0093] Please refer to Figure 5 , sticks and other scenes with the center of gravity outside:
[0094] When the user holds a stick and other objects with the center of gravity outside, the target object is analyzed to be a heavy object, made of iron or wood, and the length of the stick. The center of gravity is first calculated according to the weight and length of the virtual object, and then the force required by the holding end is calculated according to the center of gravity. The electromagnet starts working to generate a corresponding vertical downward magnetic force. The magnitude of the magnetic force is the force required by the holding end. Finally, the center of gravity of the simulated object is outside the handle.
[0095] Please refer to Figure 5 , the stick-waving scene:
[0096] When the user swings the handle, the built-in gyroscope in the handle senses the acceleration and sets a threshold for the acceleration, such as 10m / s, to identify it as swinging a stick. At this time, only the controller is real, and the stick is virtual. There are actually three forces at this time: one is the virtual gravity applied from the virtual center of gravity, and the second is the grip force that needs to be applied to offset inertia.
[0097] The force that the user should feel is the resultant of these two forces; the object's gravity is g'1, the generated inertial force is f'2, the resultant force should be at the angle between the ground and the swing direction, the vector is g'1 / f'2, and the magnitude of the resultant force is f'3,
[0098] Virtual gravity is applied by g sets of electromagnets; inertial force is simulated by another set of electromagnets in a direction parallel to the user's movement direction;
[0099] The electromagnet groups start working one by one from near to far. First, the m groups of magnets exert equal gravity, and the electromagnets near them produce a larger resultant force F′. 3_1 , the electromagnets at a distance produce a smaller combined force, and the combination mode is the same as the interaction mode-force combination, and finally And the vector of F′3 is the same as f′3;
[0100] The above is a scenario where two sets of forces are continuously applied. If more forces are involved, more sets of electromagnets will operate separately to apply different forces.
[0101] In the scene of instantaneous force:
[0102] In addition to the scenario of continuous force application, there are also different scenarios of instantaneous force application or reception, such as receiving a heavy object. The specific scenarios operate as follows:
[0103] The target user receives a ball flying towards him. When the system detects that the contact area of the user collides with the ball, a force analysis is performed. At this time, there should be two forces, gravity g and pressure Ff that offsets inertia. Among them, the weight of the ball is constant, and this group of gravity is applied by the electromagnet group g. Ff is an instantaneous force, and the duration t is 0.3 seconds (customizable as needed), and the force is parallel to the direction of movement of the ball.
[0104] This group of forces is provided by the magnet group f behind the target user. The magnitude of the instantaneous force is the same as the force Ff that the target user needs to apply to offset the inertia. m is the mass of the object, v is the speed of the object when it contacts, and a is the acceleration of the object when it contacts. The formula is as follows: Ff = ma = (0-mv) / t;
[0105] According to the different interactive behaviors of the target user, different forces are applied and simulated through the magnetic field of the electromagnetic generating device, so that when the target user uses the XR device and when some interactions are involved, an attraction or repulsion of corresponding weight can be generated according to the mass and characteristics of the object; in addition, in addition to using electromagnets, force can also be generated by tightening or loosening the traction rope, and filling or extracting buoyant gas, thereby providing users with richer simulated force conditions in different scenarios and improving the user's immersive experience.
[0106] Please refer to Figure 6 , the embodiment of the present application provides a motion interaction device for a virtual scene, comprising:
[0107] An acquisition module 61 is used to detect a target behavior of a target user in a virtual scene, and to acquire position information of a virtual handle and position information of an electromagnetic generating device when the target behavior occurs;
[0108] A force analysis module 62, configured to analyze the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior;
[0109] The force simulation module 63 is used to simulate the force condition of the target user through the electromagnetic generating device and the virtual handle.
[0110] In the embodiment of the present application, optionally, the electromagnetic generating device includes a plurality of electromagnets, and the virtual handle includes a magnetic force sensing device;
[0111] The force simulation module comprises:
[0112] The force simulation submodule is used to simulate the force condition of the target behavior by controlling at least one electromagnet among the multiple electromagnets.
[0113] In the embodiment of the present application, optionally, the force simulation submodule includes:
[0114] A first processing submodule is used to determine a minimum electromagnet set having the least number of electromagnets that can achieve the force condition;
[0115] The second processing submodule is used to turn on the electromagnets in the minimum electromagnet set, wherein the resultant force generated on the virtual handle after turning on the electromagnets in the minimum electromagnet set simulates the size and direction of the target force in the force condition of the target behavior.
[0116] In the embodiment of the present application, optionally, it also includes:
[0117] A first processing module, configured to establish a vertical and horizontal plane coordinate system with the target user as the origin according to the position information of the virtual handle and the position information of the electromagnetic generating device;
[0118] The second processing module is used to analyze the force type of the target behavior according to the coordinate system, and construct the force direction and force magnitude of the force type in the coordinate system.
[0119] In the embodiment of the present application, optionally, the force analysis module includes:
[0120] An acquisition submodule, used to acquire target item information corresponding to when the target user performs the target behavior, wherein the target item information includes at least one of the following: weight, length and material;
[0121] The third processing submodule is used to analyze the center of gravity position of the target object according to the position information of the virtual handle, the position information of the electromagnetic generating device, the target behavior and the target object information, and analyze the force condition of the target user according to the center of gravity position of the target object.
[0122] In the embodiment of the present application, optionally, the force condition includes gravity and at least one of the following forces: inertia force and pressure.
[0123] The action interaction device for the virtual scene provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0124] The present application embodiment provides an electronic device 70, see Figure 7 As shown, Figure 7This is a principle block diagram of an electronic device 70 of an embodiment of the present application, including a processor 71, a memory 72, and a program or instruction stored in the memory 72 and executable on the processor 71. When the program or instruction is executed by the processor, the steps in the action interaction method of any virtual scene in the present application are implemented.
[0125] An embodiment of the present application provides a readable storage medium, on which programs or instructions are stored. When the programs or instructions are executed by a processor, the various processes of an embodiment of the action interaction method of a virtual scene such as any of the above-mentioned items are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
[0126] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0127] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0128] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0129] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0130] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a service classification device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0132] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for action interaction in a virtual scene, characterized in that: include: Detecting the target behavior of the target user in the virtual scene, and obtaining the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs; Analyzing the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior; The force condition of the target user is simulated by the electromagnetic generating device and the virtual handle.
2. The action interaction method of a virtual scene according to claim 1, characterized in that: The electromagnetic generating device includes a plurality of electromagnets, and the virtual handle includes a magnetic force sensing device; The force condition of the target user is simulated by the electromagnetic generating device and the virtual handle, including: The force condition of the target behavior is simulated by controlling at least one electromagnet among the plurality of electromagnets.
3. The action interaction method of virtual scene according to claim 2, characterized in that: The step of simulating the force condition of the target behavior by controlling at least one of the plurality of electromagnets comprises: Determine a minimum electromagnet set having the least number of electromagnets that can achieve the force condition; The electromagnets in the minimum electromagnet set are turned on, wherein the resultant force generated on the virtual handle after the electromagnets in the minimum electromagnet set are turned on simulates the magnitude and direction of the target force in the force condition of the target behavior.
4. The action interaction method of virtual scene according to claim 1, characterized in that: After detecting the target behavior of the target user in the virtual scene and obtaining the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs, the method further includes: Establishing a vertical and horizontal coordinate system with the target user as the origin according to the position information of the virtual handle and the position information of the electromagnetic generating device; The force type of the target behavior is analyzed according to the coordinate system, and the force direction and force magnitude of the force type are constructed in the coordinate system.
5. The action interaction method of virtual scene according to claim 1, characterized in that: The analyzing the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior includes: Acquire target item information corresponding to when the target user performs the target behavior, the target item information including at least one of the following: weight, length and material; The center of gravity position of the target object is analyzed according to the position information of the virtual handle, the position information of the electromagnetic generating device, the target behavior and the target object information, and the force condition of the target user is analyzed according to the center of gravity position of the target object.
6. The action interaction method of virtual scene according to claim 5, characterized in that: The force conditions include gravity and at least one of the following forces: inertia force and pressure.
7. A motion interaction device for a virtual scene, characterized in that: include: An acquisition module, used to detect the target behavior of the target user in the virtual scene, and to acquire the position information of the virtual handle and the position information of the electromagnetic generating device when the target behavior occurs; A force analysis module, used to analyze the force condition of the target user according to the position information of the virtual handle, the position information of the electromagnetic generating device and the target behavior; The force simulation module is used to simulate the force condition of the target user through the electromagnetic generating device and the virtual handle.
8. An electronic device, characterized in that: It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the action interaction method of the virtual scene as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps in the action interaction method of the virtual scene according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the action interaction method for a virtual scene as claimed in any one of claims 1 to 6.
