A virtual object interaction control method, terminal and storage medium
By configuring switchable visual patterns and physical parameter sets for the virtual cursor, the problem of poor virtual cursor interaction experience was solved, enabling varied interactions between the virtual cursor and virtual objects and improving the user experience.
Patent Information
- Application Number
- CN202611316219.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-17
AI Technical Summary
The visual appearance and response method of virtual cursors in existing technologies are monotonous, resulting in a poor interactive experience and a dull user interaction process.
By configuring switchable visual patterns for the virtual cursor and assigning different visual patterns to different sets of physical parameters, a mapping relationship is formed between the visual appearance and physical properties of the virtual cursor and the behavioral response of the virtual object, enabling versatile interaction between the virtual cursor and the virtual object.
It enriches the ways users interact with the virtual cursor, enhances the fun and variability of the interaction, and improves the user experience.
Smart Images

Figure CN123114338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of interactive technology, and in particular to a virtual object interactive control method, terminal and storage medium. Background Technology
[0002] With the development of human-computer interaction technology, displaying virtual objects (such as electronic pets, virtual assistants, etc.) on the terminal screen and interacting with them has become an increasingly common interaction method.
[0003] However, the inventors found that virtual cursors are currently usually only used as traditional pointers or position indicators. Their visual appearance and attributes remain fixed in different interactive scenarios, and the virtual object's response to the cursor is relatively simple, making it difficult to provide a rich interactive experience. This results in a monotonous interaction process and a poor user experience.
[0004] Therefore, improvements to existing technologies are necessary.
[0005] The above information is provided as background information only to aid in understanding this application and does not constitute an assertion or admission that any of the above content can be used as prior art relative to this application. Summary of the Invention
[0006] This application provides a virtual object interaction control method, terminal, and storage medium to solve the problem of poor interactive experience in the prior art.
[0007] To achieve the above objectives, this application provides the following technical solution:
[0008] In a first aspect, embodiments of this application provide a virtual object interaction control method, applied to a terminal including a screen, the method comprising:
[0009] A virtual cursor and virtual objects are generated on the screen;
[0010] In response to a pattern switching command, the visual appearance of the virtual cursor is controlled to switch between at least two visual patterns, wherein each visual pattern has a different set of physical parameters;
[0011] In response to user operation commands, the virtual cursor and / or the virtual object are controlled to perform interactive behaviors based on the set of physical parameters associated with the visual pattern.
[0012] Optionally, in response to a user operation command, the step of controlling the virtual cursor and / or the virtual object to perform interactive behavior based on the set of physical parameters associated with the visual pattern includes:
[0013] In response to a user operation command, the visual state of the visual pattern is changed based on the set of physical parameters associated with the visual pattern.
[0014] Based on the different visual states of the visual pattern, the virtual object is controlled to perform different interactive behaviors.
[0015] Optionally, the set of physical parameters is used to simulate the physical state of the visual pattern in reality, the physical state including at least one of gravity, elasticity, friction and tension.
[0016] Optionally, the interactive behavior is used to change at least one of the appearance parameters, motion parameters, sound parameters, and position parameters of the virtual object.
[0017] Optionally, the virtual object includes an electronic pet, and the at least two visual patterns include one of the following: a sphere pattern, a cat toy pattern, an insect pattern, a pet predator pattern, and a hazard pattern.
[0018] Optionally, the step of controlling the virtual object to perform different interactive behaviors based on different visual states of the visual pattern includes:
[0019] When the visual pattern is the sphere pattern, the sphere pattern is controlled to respond to the user's swinging operation and be thrown along a preset parabolic trajectory, and the virtual object performs an interactive behavior of chasing the sphere pattern; and / or
[0020] When the visual pattern is the cat toy pattern, the hanging object at the end of the cat toy pattern swings with the swing of the virtual cursor, and the virtual object performs an interactive behavior of chasing the hanging object; and / or
[0021] When the visual pattern is the insect pattern, the insect pattern is controlled to fly randomly around the virtual cursor, and the virtual object performs an interactive behavior of chasing the insect pattern; and / or
[0022] When the visual pattern is the pet predator pattern or the danger pattern, the virtual object is controlled to perform interactive behaviors of moving away from or avoiding the pet predator pattern or the danger pattern.
[0023] Optionally, the virtual object interaction control method further includes:
[0024] When the virtual cursor first appears on the screen, the virtual object is controlled to perform a first action, which is used to characterize the virtual object's discovery and / or curiosity about the virtual cursor;
[0025] When the virtual cursor moves on the screen, control the virtual object's gaze direction or body orientation to track the movement trajectory of the virtual cursor;
[0026] When the virtual cursor moves to and hovers over the target application icon, the virtual object is controlled to perform a second action, which is used to represent the virtual object's confirmation of the currently selected target application icon.
[0027] Optionally, the terminal is a vehicle-mounted terminal; the virtual object interaction control method further includes:
[0028] The status of traffic lights in front of the vehicle is obtained through the vehicle's onboard camera;
[0029] When the traffic light is green and the vehicle is stationary, the virtual object is controlled to perform a third action, which is used to prompt the vehicle to start.
[0030] When the traffic light is yellow, the virtual object is controlled to perform a fourth action, which is used to prompt cautious driving.
[0031] Optionally, the visual pattern is switched to a traffic light pattern, and the traffic light pattern is used to synchronize with the traffic light status.
[0032] Optionally, the terminal is a vehicle-mounted terminal; the virtual object interaction control method further includes:
[0033] After the vehicle enters the parking state, a target pattern carrying a parking mark is generated on the screen, and the virtual object is controlled to interact with the target pattern. During the interaction, a fifth action is executed, which is used to invite the user to participate in the interaction.
[0034] Upon receiving the user's interaction instruction, the virtual cursor is bound to the target pattern, and the target pattern and the virtual object are controlled to perform corresponding interactive behaviors according to the user's control instructions on the virtual cursor.
[0035] Optionally, the target pattern is a spherical pattern;
[0036] The step of controlling the target pattern and the virtual object to perform corresponding interactive behaviors based on the user's control instructions on the virtual cursor includes:
[0037] A basket or goal pattern is generated in the target area of the screen;
[0038] The spherical pattern is controlled to move according to the control command;
[0039] During the movement of the spherical pattern, the virtual object is controlled to perform a preset interference behavior, which is used to block the movement path of the spherical pattern and / or change the movement direction of the spherical pattern; and / or, when the spherical pattern is detected to be projected onto the target area, the virtual object is controlled to perform a sixth behavior, which is used to indicate that the spherical pattern has been successfully projected into the basket or goal.
[0040] Optionally, generating a virtual cursor on the screen includes:
[0041] Capture the user's eye movement or hand gestures using sensing devices;
[0042] Based on the eye movement trajectory or the gesture, determine the user's gaze position or indicating position on the screen;
[0043] The virtual cursor is generated at the gaze position or the indication position.
[0044] Secondly, embodiments of this application provide a terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the virtual object interaction control method described above.
[0045] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions thereon, which are executed by a computer processor to implement the virtual object interaction control method described in any of the above claims.
[0046] Compared with the prior art, this application has the following beneficial effects:
[0047] This application embodiment configures switchable visual patterns for the virtual cursor and assigns different visual patterns to different sets of physical parameters, thereby establishing a mapping relationship between the visual appearance and physical attributes of the virtual cursor and the behavioral response of the virtual object.
[0048] Firstly, when the virtual cursor switches to different visual patterns, each visual pattern obtains a different physical state through the set of physical parameters. Users can obtain different interactive experiences through different visual patterns, thereby increasing the ways in which users interact with the virtual cursor.
[0049] Secondly, virtual objects are used to perform interactive behaviors based on changes in the physical state of visual patterns. In other words, changes in the physical state provide nodes to control the virtual objects to perform interactive behaviors, making the interactive behaviors of virtual objects more varied.
[0050] In summary, assigning different visual patterns to the virtual cursor, with each pattern possessing different physical parameters, not only enriches the interaction methods between the user and the virtual cursor but also allows for greater variability in the virtual object, thereby enhancing the fun of the interaction and ultimately improving the user experience.
[0051] This application has other features and advantages that are apparent from or will be set forth in detail in the accompanying drawings and following detailed description, which together serve to explain the particular principles of this application. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0053] Figure 1 This is a flowchart of the virtual object interaction control method provided in the embodiments of this application;
[0054] Figures 2 to 8 This is a schematic diagram illustrating the interaction behavior of a virtual cursor and a virtual object in different scenarios provided in the embodiments of this application. Detailed Implementation
[0055] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0056] To effectively enhance the interactive experience, this application provides a virtual object interaction control method, applicable to terminals including screens (such as mobile phones, tablets, and vehicle central control systems). The virtual object can be anthropomorphic or object-like interactive objects such as electronic pets or virtual assistants. The terminal may be equipped with sensing devices (such as eye-tracking devices, gesture recognition cameras, etc.) to capture user operation information and generate a virtual cursor on the screen.
[0057] Please refer to Figure 1 The virtual object interaction control method provided in this application includes:
[0058] S1. Generate a virtual cursor and virtual objects on the screen.
[0059] The virtual cursor is a visual interactive identifier displayed on the screen, used to respond to user control commands (such as eye tracking, gestures, or touch operations) and perform corresponding operations on the screen.
[0060] For example, a virtual cursor can be generated in the following ways: by capturing the user's eye movement trajectory through a sensing device, determining the user's gaze position on the screen based on the eye movement trajectory, and generating a virtual cursor at the gaze position; or by capturing the user's hand gestures through a sensing device, determining the user's pointing position on the screen based on the hand gestures, and generating a virtual cursor at the pointing position. That is, the coordinates of the virtual cursor are used to bind to the coordinates of the user's hand.
[0061] Initially, the virtual object can be pre-displayed in a preset area of the screen (e.g., the center, bottom, or side of the screen) and has an initial display state (e.g., sitting, standing, or standby posture). After being generated, the virtual cursor can be displayed on the screen at the position corresponding to the user's operation signal; this application does not specifically limit this.
[0062] S2. In response to a pattern switching command, control the visual appearance of the virtual cursor to switch between at least two visual patterns, wherein each visual pattern has a different set of physical parameters.
[0063] The pattern switching command is used to trigger a change in the visual pattern of the virtual cursor. The pattern switching command can be actively input by the user (e.g., the user manually selects to switch via touch screen click, gesture operation, or voice command), or it can be automatically generated by the system when a preset event is detected (e.g., the switching is automatically triggered when the vehicle enters the parking state). This application does not limit this.
[0064] For example, at least two visual patterns can be any pattern style with different specific visual characteristics among sphere patterns, cat toy patterns, insect patterns, predator patterns, and hazard patterns, and can be adapted to the type of the current virtual object in practical applications.
[0065] In one embodiment, the set of physical parameters is used to simulate the changes in the physical state of an object displayed by a visual pattern when it interacts with the outside world in a real environment. Specifically, it simulates the changes in the physical state of an object under the influence of force or heat, including at least one of gravity, elasticity, friction, and tension. For example, when the visual pattern is a sphere, the physical parameter set is used to physically simulate the sphere, so that the sphere on the screen has physical properties close to those of a real sphere, and can be subjected to gravity and has elasticity.
[0066] S3. In response to user operation commands, based on the set of physical parameters associated with the visual pattern, control the virtual cursor and / or virtual objects to perform interactive behaviors.
[0067] In one embodiment, this step specifically includes: responding to a user operation command, changing the visual state of the visual pattern based on the set of physical parameters associated with the visual pattern; and controlling the virtual object to perform different interactive behaviors based on the different visual states of the visual pattern, so that a clear correspondence is formed between the change of the visual pattern and the interactive behavior of the virtual object, making the interaction process intuitive and vivid.
[0068] Interactive behaviors are used to change at least one of the following parameters of a virtual object: appearance, motion, sound, and position. Appearance parameters include the virtual object's facial expressions (e.g., changes in facial expressions such as curiosity, happiness, fear, and frustration) and / or appearance (e.g., changes in accessories, colors, and patterns). Motion parameters include the virtual object's types of actions (e.g., changes in posture and motion such as jumping, spinning, rolling, chasing, pouncing, dodging, cheering, and staring). Sound parameters include the virtual object's speech and / or sound effects (e.g., changes in sound content and tone such as prompts, urging voices, warning voices, and cheering voices). Position parameters include the virtual object's coordinate position and / or orientation on the screen (e.g., displacement during chasing, backward movement when moving away, and trajectory movement when circling). Based on this, virtual objects and / or virtual cursors can exhibit rich and diverse behaviors in different interactive scenarios, enhancing the anthropomorphism of the interaction.
[0069] In summary, this application's embodiments configure switchable visual patterns for the virtual cursor and assign different patterns to different sets of physical parameters, thus establishing a mapping relationship between the visual appearance and physical properties of the virtual cursor and the behavioral responses of the virtual object. When the virtual cursor switches to different patterns, the interactive behavior between the virtual cursor and the virtual object changes synchronously, resulting in a variety of distinct interactive experiences. This not only enhances the fun of the interaction but also achieves adaptability of the interactive behavior in different scenarios, ultimately improving the user experience.
[0070] In one alternative implementation, such as Figures 2 to 8 As shown, virtual objects include electronic pets, such as cats and dogs; visual patterns include sphere patterns, cat toy patterns, insect patterns, pet predator patterns, or dangerous object patterns.
[0071] Based on this, step S3 controls the virtual cursor and / or virtual object to perform corresponding interactive behaviors according to the physical parameter set corresponding to the visual pattern, including:
[0072] When the visual pattern is a sphere, the physical parameter set can include projectile motion parameters to control the sphere pattern to be thrown along a preset parabolic trajectory in response to the virtual cursor's flicking action. The virtual object then chases the sphere pattern. Figures 2 to 5As shown, users can run, jump towards, or follow the trajectory of a sphere pattern to simulate a real pet chasing a ball. Once the sphere stops moving, the virtual object can further perform actions such as picking it up, patting it, or using its paws to nudge it, enhancing the continuity and realism of the interaction. Notably, the user's hand swings, similar to throwing a ball in real life, and the sphere is thrown accordingly. Through user gestures and a set of physical parameters, the system comprehensively simulates the user's experience of throwing and being thrown a ball, improving the realism of the interaction between the user and the sphere pattern.
[0073] In this embodiment, the spherical pattern is used to simulate a real-world physical state using a set of physical parameters, and the spherical pattern also simulates real-world gravity using the same set of physical parameters. Therefore, when the spherical pattern is thrown out, it can be launched along a parabola. For example, the spherical pattern can be programmed with a constant acceleration pointing downwards from the screen, such as an applied acceleration of 9.8 m / s².
[0074] In one embodiment, the spherical pattern also simulates real-world elasticity using a set of physical parameters. For example, when the spherical pattern moves to a preset boundary of the screen, it bounces back. Specifically, when the spherical pattern moves to the preset boundary of the screen, it changes from a first visual state of "circle" to a second visual state of "ellipse," thereby visually simulating the effect of spherical deformation. In this embodiment, the virtual object is used to perform different interactive behaviors based on the different visual states of the visual pattern. For example, when the spherical pattern is "circle," the virtual object performs a chasing interaction; when the spherical pattern approaches the preset boundary and "compresses" into an "ellipse," the virtual object is "startled" and performs an interaction to move away from the spherical pattern.
[0075] In the above embodiments, by introducing different visual states of visual patterns, more response nodes are provided to the virtual object, and the virtual object executes instructions to change its interactive behavior based on these response nodes. This makes the interaction of the virtual object richer and more vivid.
[0076] When the visual pattern is a cat toy, the physical parameter set can include suspension swing parameters, controlling the hanging objects (such as feathers, bells, pom-poms, etc.) at the end of the cat toy toy to swing as the virtual cursor swings, and the virtual object performs the behavior of chasing the hanging objects, such as... Figure 6 As shown, actions such as pouncing on a hanging object, slapping it with paws, or jumping to try and grab it can simulate a real pet interacting with a cat toy. The hanging object can further respond to the virtual object's slaps by producing avoidance or rebound effects to enhance the realism and fun of the interaction.
[0077] When the visual pattern is an insect pattern, control the insect pattern (such as an image of a fly, butterfly, firefly, etc.) to fly randomly around the virtual cursor (e.g., randomly change flight direction, randomly accelerate or decelerate, randomly rise and fall, etc.). Figure 7 As shown, the virtual object performs behaviors such as chasing insect patterns; for example, jumping towards the insect, running along the insect's flight path, or swatting at the insect with its paw, simulating the interactive scene of a real pet chasing an insect. When the virtual object touches or swattes the insect pattern, the insect pattern can respond to the virtual object's contact behavior by producing special effects of being swatted down (such as falling, disappearing, or escaping), to enhance the sense of immediate feedback in the interaction.
[0078] When the visual image is an image of a pet's natural enemy (e.g., a dog or fox could be an image of a cat's natural enemy) or an image of a dangerous object (e.g., a bucket of water, firecrackers, or other items that are perceived as threatening to pets), such as Figure 8 As shown, the virtual object is controlled to perform behaviors such as moving away from or avoiding pet predator or danger patterns; for example, retreating, running to the other side of the screen, hiding behind the edge of the screen or virtual obstacles, curling up, displaying tense and frightened postures, expressions, and / or sounds (such as bristling fur, widening eyes, whimpering, etc.). By setting such patterns, the emotional dimension of the virtual object's interactive behavior can be increased, making the virtual object's behavior richer and more anthropomorphic, and increasing the fun of the interaction.
[0079] It's understandable that assigning physical states to visual patterns through a set of physical parameters offers strong scalability. Visual patterns can be transformed into other styles as needed, such as a fly swatter with one rigid end and the other elastic, or a paper airplane that drifts along a random trajectory after being thrown. The set of physical parameters allows for richer and more vivid interactivity in visual patterns.
[0080] In one embodiment, the coordinates of the virtual cursor are bound to the user's hand coordinates. In another embodiment, the step of generating the virtual cursor and virtual object on the screen includes: responding to the virtual cursor generated on the screen, cutting in the virtual object from the side of the screen. The virtual object only cuts in and out from the side of the screen when the user generates the virtual cursor, without reserving a permanent display position for the virtual object in the effective display area of the screen, reducing obstruction of the original display content and minimizing interference with the original interactive elements. It is worth mentioning that the virtual object can exist before or after the virtual cursor appears. For example, when the screen is in the first mode, i.e., companion mode, the virtual object remains on the screen, facilitating quick interaction between the user and the virtual object. When the screen is in the second mode, i.e., focus mode, the virtual object appears after the virtual cursor appears, avoiding visual interference for the user.
[0081] In one embodiment, the control method includes: detecting that the user's preset hover gesture exceeds a preset time, generating a virtual cursor, and binding the coordinates of the virtual cursor to the coordinates of the user's hover gesture. By detecting and recognizing the user's hover gesture to generate the virtual cursor, the coordinates of the virtual cursor can be immediately bound to the coordinates of the user's hand. It is understood that if a user first clicks a physical button or the screen to generate a virtual cursor, and then withdraws their hand to bind the virtual cursor, this requires both clicking the virtual cursor and rebinding the coordinates, which is cumbersome. Activating the virtual cursor through a user gesture and directly binding the virtual cursor to the user's hand coordinates is more convenient than physical button or screen operation. In this embodiment, detecting that the user's preset hover gesture exceeds a preset time can be 3 seconds, 5 seconds, or any other arbitrary time. Setting a preset time threshold can prevent user misoperation.
[0082] In one optional implementation, the virtual object interaction control method further includes:
[0083] When the virtual cursor first appears on the screen, the virtual object is controlled to perform a first action, which represents the virtual object's discovery and / or curiosity about the virtual cursor. For example, the first action may include: the virtual object displaying a surprised posture (e.g., leaning back, widening eyes, perked-up ears, etc.), an inquisitive posture (e.g., tilting its head to look, circling around the virtual cursor, etc.), a curious expression (e.g., dilated pupils, raised eyebrows, etc.), or emitting a curious sound (e.g., "Huh?"). Through this first action, the virtual object simulates the alertness and curiosity of a real living being when discovering something unfamiliar, allowing the user to perceive the "vitality" of the virtual object and enhancing the ritualistic and fun aspects of the initial interaction.
[0084] As the virtual cursor moves across the screen, the virtual object's gaze or body orientation is controlled to track the cursor's movement. For example, the virtual object's head rotates with the virtual cursor's movement, and its gaze remains focused on the cursor's location.
[0085] When the virtual cursor moves to and hovers over the target application icon, the virtual object is controlled to perform a second action. This second action represents the virtual object's confirmation of the currently selected target application icon. For example, the second action may include: the virtual object tapping, grabbing, or touching the icon to indicate "This is selected!", emitting a notification sound, etc. Through this second action, the virtual object provides human-like selection feedback when the user performs interface operations, helping the user confirm the current operation target and reducing the rate of accidental touches.
[0086] In one alternative implementation, the terminal is an in-vehicle terminal. In this case, the virtual object interaction control method may further include:
[0087] The status of traffic lights in front of the vehicle is obtained through the vehicle's onboard camera;
[0088] When the traffic light is green and the vehicle is stationary, the virtual object is controlled to execute a third action, which is used to prompt the vehicle to start.
[0089] When the traffic light is yellow, the virtual object is controlled to execute the fourth action, which is used to remind drivers to drive cautiously.
[0090] In this embodiment, an onboard camera, typically located in front of the vehicle, can be used to capture images of the environment in front of the vehicle, and the color status of traffic lights, such as red, green, or yellow, can be identified through image analysis.
[0091] For example, the third behavior may include: the virtual object urging the user with gestures such as waving forward, stepping in place, jumping, etc., looking at the user and urging the user with voice (such as "Master, the light is green, it's time to go!" or "Let's go!"), or showing an anxious expression, gently reminding the user to start in a human-like manner.
[0092] The fourth behavior can include: virtual objects displaying tense postures (such as tense bodies, hunched necks, etc.), issuing warning voices (such as "Yellow light, slow down!" or "Be careful to slow down!"), and displaying tense expressions, reminding users to slow down or prepare to stop in a human-like way, making safety prompts more approachable and effective.
[0093] In this embodiment, since the virtual object performs differentiated behaviors (urging to start / caution prompts) according to the different states of traffic lights (green light / yellow light), users can quickly perceive the current traffic situation through the behavior type of the virtual object, thereby improving the interactive experience while ensuring driving safety.
[0094] It should be noted that the third and fourth behaviors mentioned above are independent behavioral control dimensions from the interactive behaviors triggered by pattern switching in step S2. When the virtual cursor changes pattern, the third and fourth behaviors can be superimposed on the aforementioned interactive behaviors. For example, when the virtual cursor has switched to an enemy pattern, if the traffic light turns green, the virtual object can maintain its fear / avoidance behavior towards the enemy pattern while simultaneously executing the third behavior of urging the user to start moving (e.g., shouting "Green light, hurry up!" while dodging), forming a composite behavioral performance. Of course, in another implementation, the traffic light prompt behavior can be configured to take precedence over the interactive behaviors triggered by pattern switching to ensure the high priority of driving safety information. This application does not specifically limit the priority or superposition rules between behaviors, and can be flexibly set according to the actual application scenario.
[0095] Furthermore, in an optional implementation, the visual pattern is switched to a traffic light pattern, and the traffic light pattern is used to synchronize with the traffic light status.
[0096] Based on this, users can intuitively see the status of traffic lights when operating the virtual cursor. In this way, users can understand the current status of traffic lights even when operating the virtual cursor, without having to frequently shift their gaze, thus combining convenience and reminder function.
[0097] Specifically, the traffic light patterns include red, yellow, and green light patterns. The virtual cursor is used to switch to the red light pattern when the traffic light is red. The virtual cursor is used to switch to the yellow light pattern when the traffic light is yellow. The virtual cursor is used to switch to the green light pattern when the traffic light is green.
[0098] In one embodiment, when the virtual cursor is a green or yellow light icon, it is configured to be inoperable; or, in other words, it is configured to be immovable; or, when the virtual cursor is a green or yellow light icon, it serves only as a notification. This prevents users from operating the vehicle's terminal via the virtual cursor while driving and also serves as a reminder icon in situations with poor visibility, improving safety. The virtual object performs the reminder action when the virtual light icon is green or yellow.
[0099] In one embodiment, when the virtual cursor is a red light pattern, the red light pattern displays a countdown timer to indicate the remaining duration of the red light. Users can determine the remaining operation time by observing the red light pattern when operating the virtual cursor, eliminating the need for frequent switching and improving convenience. In some embodiments, while driving, the virtual cursor is configured to only operate in-vehicle environment control applications and not in-vehicle entertainment applications, thereby increasing driving safety.
[0100] In another optional implementation, when the terminal is an in-vehicle terminal, the virtual object interaction control method further includes:
[0101] After the vehicle enters parking mode, a target image carrying a parking indicator (such as P gear) is generated on the screen. The virtual object interacts with the target image, and during this interaction, a fifth action is performed to invite the user to participate. For example, the fifth action may include: the virtual object looking at the user and making an inviting gesture (such as pointing at the target image with a paw, waving, or nodding), issuing an inviting voice (such as "Master, let's play together!" or "Look! There's a ball!"), or displaying an expectant expression (such as glowing eyes). Through this fifth action, the virtual object stimulates the user's willingness to participate in a human-like invitation, enhancing the interactive effect.
[0102] Upon receiving a user's interaction command, the system binds a virtual cursor to a target image. Based on the user's commands to manipulate the virtual cursor, it controls the target image and virtual object to perform corresponding interactive behaviors. Interaction commands can include preset gestures (such as the OK gesture), voice commands (such as "Okay," "Let's play!"), touch operations, etc.
[0103] For example, the target pattern can be a sphere; in this case, controlling the target pattern and the virtual object to perform corresponding interactive behaviors according to the user's control instructions on the virtual cursor may include:
[0104] Generate a basketball hoop pattern in the target area of the screen;
[0105] The ball pattern is controlled to move according to the control command (such as dragging, throwing, etc.); when the user performs the throwing operation, the ball pattern can be controlled to be thrown along a preset parabolic trajectory to simulate the physical effect of projectile motion of a real ball.
[0106] During the movement of the sphere pattern, the virtual object is controlled to perform a preset interference behavior, which is used to block the movement path of the sphere pattern and / or change the movement direction of the sphere pattern; and / or, when the sphere pattern is detected to be projected into the target area, the virtual object is controlled to perform a sixth behavior, which is used to indicate that the sphere pattern has been successfully projected into the basket.
[0107] In other embodiments, a goal pattern is generated in a target area of the screen, and the virtual object is used to perform a preset interference behavior to prevent the user from throwing the ball pattern into the goal.
[0108] For example, preset interference behaviors may include: the virtual object moving in front of the movement path of the sphere pattern to block its progress, jumping and pouncing on the sphere to change its direction of movement, slapping the sphere with its claw to make it deviate from its trajectory, etc., which can increase the challenge and fun of the interaction.
[0109] The sixth behavior may include: virtual objects displaying cheering gestures (such as jumping, spinning, raising arms, etc.), happy expressions (such as squinting and smiling, eyes glowing, etc.), and uttering voices (such as "Goal!", "Great!", etc.) to provide immediate positive emotional feedback after the user successfully completes a shot.
[0110] This application embodiment automatically triggers the interaction process by detecting the parking status, turning the fragmented time of waiting in the parking space into opportunities for game interaction. At the same time, the virtual object can actively invite the user to participate in the interaction, introduce the interference behavior of the virtual object during the shooting process, and provide immediate positive emotional feedback after the user successfully shoots the ball, which enriches the interaction layers and effectively improves the interaction stickiness.
[0111] Secondly, embodiments of this application provide a terminal, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the virtual object interaction control method described in any of the above embodiments.
[0112] The aforementioned terminal can execute the methods provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the methods, which will not be elaborated here.
[0113] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the virtual object interaction control method provided in all embodiments of this application.
[0114] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0115] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0116] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, or any suitable combination thereof.
[0117] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0118] Finally, it should be noted that although the above embodiments have been described in the text and drawings of this application, this should not limit the scope of patent protection of this application. Any technical solutions that are based on the essential concept of this application and utilize the content described in the text and drawings of this application, resulting in equivalent structural or procedural substitutions or modifications, as well as the direct or indirect application of the technical solutions of the above embodiments to other related technical fields, are all included within the scope of patent protection of this application.
Claims
1. A virtual object interaction control method, characterized in that, Applied to a terminal including a screen, the method includes: A virtual cursor and virtual objects are generated on the screen; In response to a pattern switching command, the visual appearance of the virtual cursor is controlled to switch between at least two visual patterns, wherein each visual pattern has a different set of physical parameters; In response to user operation commands, the virtual cursor and / or the virtual object are controlled to perform interactive behaviors based on the set of physical parameters associated with the visual pattern.
2. The virtual object interaction control method according to claim 1, characterized in that, The set of physical parameters is used to simulate the physical state of the visual pattern in reality, and the physical state includes at least one of gravity, elasticity, friction and tension.
3. The virtual object interaction control method according to claim 1, characterized in that, The interactive behavior is used to change at least one of the appearance parameters, motion parameters, sound parameters, and position parameters of the virtual object.
4. The virtual object interaction control method according to claim 1, characterized in that, The virtual object includes an electronic pet, and the at least two visual patterns include one of the following: a sphere pattern, a cat toy pattern, an insect pattern, a pet predator pattern, and a hazard pattern.
5. The virtual object interaction control method according to claim 1, characterized in that, The step of controlling the virtual cursor and / or the virtual object to perform interactive behaviors in response to user operation commands and based on the set of physical parameters associated with the visual pattern includes: In response to a user operation command, the visual state of the visual pattern is changed based on the set of physical parameters associated with the visual pattern. Based on the different visual states of the visual pattern, the virtual object is controlled to perform different interactive behaviors.
6. The virtual object interaction control method according to claim 5, characterized in that, The step of controlling the virtual object to perform different interactive behaviors based on different visual states of the visual pattern includes: When the visual pattern is the sphere pattern, the sphere pattern is controlled to respond to the user's swinging operation and be thrown along a preset parabolic trajectory, and the virtual object performs an interactive behavior of chasing the sphere pattern; and / or When the visual pattern is the cat toy pattern, the hanging object at the end of the cat toy pattern swings with the swing of the virtual cursor, and the virtual object performs an interactive behavior of chasing the hanging object; and / or When the visual pattern is the insect pattern, the insect pattern is controlled to fly randomly around the virtual cursor, and the virtual object performs an interactive behavior of chasing the insect pattern; and / or When the visual pattern is the pet predator pattern or the danger pattern, the virtual object is controlled to perform interactive behaviors of moving away from or avoiding the pet predator pattern or the danger pattern.
7. The virtual object interaction control method according to claim 1, characterized in that, The virtual object interaction control method further includes: When the virtual cursor first appears on the screen, the virtual object is controlled to perform a first action, which is used to characterize the virtual object's discovery and / or curiosity about the virtual cursor; When the virtual cursor moves on the screen, control the virtual object's gaze direction or body orientation to track the movement trajectory of the virtual cursor; When the virtual cursor moves to and hovers over the target application icon, the virtual object is controlled to perform a second action, which is used to represent the virtual object's confirmation of the currently selected target application icon.
8. The virtual object interaction control method according to claim 1, characterized in that, The terminal is a vehicle-mounted terminal; the virtual object interaction control method further includes: The status of traffic lights in front of the vehicle is obtained through the vehicle's onboard camera; When the traffic light is green and the vehicle is stationary, the virtual object is controlled to perform a third action, which is used to prompt the vehicle to start. When the traffic light is yellow, the virtual object is controlled to perform a fourth action, which is used to prompt cautious driving.
9. The virtual object interaction control method according to claim 8, characterized in that, The visual pattern is switched to a traffic light pattern, and the traffic light pattern is used to synchronize with the traffic light status.
10. The virtual object interaction control method according to claim 1, characterized in that, The terminal is a vehicle-mounted terminal; the virtual object interaction control method further includes: After the vehicle enters the parking state, a target pattern carrying a parking mark is generated on the screen, and the virtual object is controlled to interact with the target pattern. During the interaction, a fifth action is executed, which is used to invite the user to participate in the interaction. Upon receiving the user's interaction instruction, the virtual cursor is bound to the target pattern, and the target pattern and the virtual object are controlled to perform corresponding interactive behaviors according to the user's control instructions on the virtual cursor.
11. The virtual object interaction control method according to claim 10, characterized in that, The target pattern is a spherical pattern; The step of controlling the target pattern and the virtual object to perform corresponding interactive behaviors based on the user's control instructions on the virtual cursor includes: A basket or goal pattern is generated in the target area of the screen; The spherical pattern is controlled to move according to the control command; During the movement of the spherical pattern, the virtual object is controlled to perform a preset interference behavior, which is used to block the movement path of the spherical pattern and / or change the movement direction of the spherical pattern; and / or, when the spherical pattern is detected to be projected onto the target area, the virtual object is controlled to perform a sixth behavior, which is used to indicate that the spherical pattern has been successfully projected into the basket or goal.
12. The virtual object interaction control method according to claim 1, characterized in that, The process of generating a virtual cursor on the screen includes: Capture the user's eye movement or hand gestures using sensing devices; Based on the eye movement trajectory or the gesture, determine the user's gaze position or indicating position on the screen; The virtual cursor is generated at the gaze position or the indication position.
13. A terminal comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the virtual object interactive control method as described in any one of claims 1-12.
14. A computer-readable storage medium having computer-executable instructions stored thereon, characterized in that, The computer-executable instructions are executed by a computer processor to implement the virtual object interactive control method as described in any one of claims 1-12.
