CN107329690B - Virtual object control method and device, storage medium and electronic equipment - Google Patents

Virtual object control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107329690B
CN107329690B CN201710515388.2A CN201710515388A CN107329690B CN 107329690 B CN107329690 B CN 107329690B CN 201710515388 A CN201710515388 A CN 201710515388A CN 107329690 B CN107329690 B CN 107329690B
Authority
CN
China
Prior art keywords
virtual object
angle
sliding operation
rotate
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710515388.2A
Other languages
Chinese (zh)
Other versions
CN107329690A (en
Inventor
姚舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710515388.2A priority Critical patent/CN107329690B/en
Publication of CN107329690A publication Critical patent/CN107329690A/en
Application granted granted Critical
Publication of CN107329690B publication Critical patent/CN107329690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a virtual object control method and apparatus, a storage medium, and an electronic device, which are applied to a touch terminal capable of presenting an interactive interface, where the interactive interface includes a steering control area and a virtual object, and the virtual object control method includes: when the sliding operation acting on the steering control area is detected, controlling the virtual object to rotate according to the sliding track of the sliding operation, and acquiring the direction of the sliding operation and the pressing force of the sliding operation in real time; and when the pressing degree is judged to be larger than a preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction. The virtual object can be rotated greatly, operability is high, and user experience is good.

Description

Virtual object control method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of human-computer interaction technologies, and in particular, to a virtual object control method and apparatus, a storage medium, and an electronic device.
Background
With the rapid development of mobile communication technology, more and more game applications are appearing on touch terminals. In a gaming application, a user controls the steering of virtual objects in a game by sliding a screen or the like.
For example, in existing first person shooter games, a virtual joystick area and an area for aiming and steering (e.g., a right blank area of a touch screen) are typically provided at the lower left in the touch screen. The user controls the movement of the virtual object by moving the finger within the rocker area. And the user slides in the right blank area of the touch screen by using a finger to control the virtual object to turn and aim. The virtual object is steered and aimed through sliding operation in a blank area on the right side of the touch screen, and the steering and the aiming of the virtual object are achieved through the same set of screen sliding speed and screen sliding logic. Thus, in actual development, steering and aiming of virtual objects are considered to be the same operation. At present, most of first-person shooting games pay attention to optimizing aiming experience, and aiming accuracy is improved by reducing screen sliding sensitivity in game design.
As described above, on the other hand, the sensitivity of the screen sliding is reduced to improve the pointing accuracy, and the virtual object cannot be steered to a large extent. Especially in the game process, if the user perceives that enemy steals, the virtual object cannot be controlled to quickly and greatly turn, so that the user experience is reduced; on the other hand, aiming requires small-amplitude accurate control, and steering of the virtual object needs to be fast and timely, and the requirements of the aiming and the steering of the virtual object on the sensitivity of screen sliding are opposite in technical implementation, so that high-precision aiming and fast large-amplitude steering of the virtual object cannot be considered simultaneously.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a virtual object control method and apparatus, a storage medium, and an electronic device, thereby overcoming, at least to some extent, one or more problems due to limitations and disadvantages of the related art.
According to an aspect of the present disclosure, a virtual object control method is provided, which is applied to a touch terminal capable of presenting an interactive interface, where the interactive interface includes a steering control area and a virtual object, and the virtual object control method includes:
when the sliding operation acting on the steering control area is detected, controlling the virtual object to rotate according to the sliding track of the sliding operation, and acquiring the direction of the sliding operation and the pressing force of the sliding operation in real time;
and when the pressing degree is judged to be larger than a preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction.
In an exemplary embodiment of the present disclosure, the controlling the virtual object to rotate according to the sliding trajectory of the sliding operation includes:
calculating a second angle according to the position of the initial touch point of the sliding operation and the position of the current touch point;
and controlling the virtual object to rotate by a second angle according to the sliding track of the sliding operation.
In an exemplary embodiment of the present disclosure, the first angle is equal to a preset angle corresponding to the preset pressure value.
In an exemplary embodiment of the disclosure, the first angle is a difference between a preset angle and the second angle, wherein the preset angle corresponds to the preset pressure value, and the preset angle is greater than the second angle.
In an exemplary embodiment of the disclosure, the first angle is a difference between the second angle and the preset angle, wherein the preset angle corresponds to the preset pressure value, and the preset angle is smaller than the second angle.
In an exemplary embodiment of the present disclosure, the controlling the virtual object to rotate by a first angle according to the direction of the sliding operation when the pressing force degree is determined to be greater than a preset pressure value includes:
when the pressing degree is judged to be larger than a first preset pressure value and smaller than or equal to a second preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction;
and when the pressing degree is judged to be larger than a second preset pressure value, controlling the virtual object to rotate by a third angle along the sliding operation direction.
In an exemplary embodiment of the present disclosure, the controlling the virtual object to rotate by a first angle according to the direction of the sliding operation includes:
and controlling the virtual object to rotate by a first angle along the direction of the sliding operation.
In an exemplary embodiment of the present disclosure, the controlling the virtual object to rotate by a first angle according to the direction of the sliding operation includes:
and controlling the virtual object to rotate by a first angle in a preset rotation direction according to the direction of the sliding operation.
According to an aspect of the present disclosure, there is provided a virtual object control apparatus applied to a touch terminal capable of presenting an interactive interface, where the interactive interface includes a steering control area and a virtual object, the virtual object control apparatus includes:
the detection acquisition module is used for controlling the virtual object to rotate according to the sliding track of the sliding operation when the sliding operation acting on the steering control area is detected, and acquiring the direction of the sliding operation and the pressing force degree of the sliding operation in real time;
and the control rotation module is used for controlling the virtual object to rotate by a first angle according to the sliding operation direction when the pressing degree is judged to be greater than a preset pressure value.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the virtual object control method of any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform any one of the virtual object control methods described above via execution of the executable instructions.
The invention discloses a virtual object control method and device, a storage medium and electronic equipment. And when the pressing force degree of the sliding operation is judged to be larger than a preset pressure value, controlling the virtual object to rotate by a first angle according to the direction of the sliding operation. On one hand, the pressure sensing technology is introduced, the virtual object is controlled to rotate by a first angle through the pressing force degree of the sliding operation, and the large-amplitude rotation of the virtual object is realized, and compared with the prior art, a user can control the virtual object to quickly and greatly steer or aim at high precision through the pressing force degree of the sliding operation, namely, the quick and large-amplitude steering and the high-precision aiming are simultaneously considered; on the other hand, the pressing force is increased only on the basis of the original sliding operation in operation, so that the operability is strong, and the user experience is good.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 is a flow chart of a virtual object control method of the present disclosure;
fig. 2 is a schematic interface diagram presented by a game application on a touch terminal according to an exemplary embodiment of the disclosure;
FIG. 3 is a block diagram of a virtual object control apparatus of the present disclosure;
FIG. 4 is a block diagram view of an electronic device in an exemplary embodiment of the disclosure;
FIG. 5 is a schematic diagram illustrating a program product in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the disclosure can be practiced without one or more of the specific details, or with other methods, components, materials, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
With the development of electronic technology, a touch terminal capable of performing pressure sensing has been implemented, so that a new operation and input mode can be provided for a user. The touch terminal can sense the sliding operation of a user and serve as the input of the touch terminal, and can sense the pressure, the position and the acting time, so that the pressure is independently used as the input of the touch terminal, or the pressure and other input modes are combined to serve as the input of the touch terminal, and a lot of convenience and interest are brought to the operation of the user.
The exemplary embodiment first discloses a virtual object control method, which is applied to a touch terminal capable of presenting an interactive interface, where the interactive interface includes a steering control area and a virtual object. The touch terminal may be a touch terminal capable of implementing pressure sensing, for example, various electronic devices such as a mobile phone, a tablet computer, and a game machine which have a touch screen and are capable of implementing pressure sensing, and the game application may control the touch screen of the touch terminal to present an interactive interface through an application program interface of the touch terminal, where the interactive interface may be a whole area of the touch screen, and the interactive interface may also be a partial area of the touch screen, which is not particularly limited in this exemplary embodiment. The interactive interface may include a steering control area, a virtual object, a virtual joystick area, a virtual battle scene, a virtual natural environment, and the like, which is not limited in this exemplary embodiment. Referring to fig. 1, the virtual object control method includes the steps of:
s1, when sliding operation acting on the steering control area is detected, controlling the virtual object to rotate according to a sliding track of the sliding operation, and acquiring the direction of the sliding operation and the pressing force of the sliding operation in real time;
and S2, when the pressing force degree is judged to be larger than a preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction.
According to the virtual object control method in the exemplary embodiment, on one hand, a pressure sensing technology is introduced, and the virtual object is controlled to rotate by a first angle through the pressing force degree of the sliding operation, so that the virtual object can be rotated greatly, and compared with the prior art, a user can control the virtual object to perform quick and large-amplitude steering or high-precision aiming through the pressing force degree of the sliding operation, namely, the quick and large-amplitude steering and high-precision aiming are both considered; on the other hand, the pressing force is increased only on the basis of the original sliding operation in operation, so that the operability is strong, and the user experience is good.
Next, the virtual object control method in the present exemplary embodiment will be further explained with reference to fig. 1.
In step S1, when a sliding operation acting on the steering control area is detected, the virtual object is controlled to rotate according to the sliding trajectory of the sliding operation, and the direction of the sliding operation and the degree of pressing force of the sliding operation are acquired in real time.
In the present exemplary embodiment, the sliding operation of the steering control area may be detected by the detection module. The steering control area may be an area with a display boundary or an area without a display boundary. The steering control area may be a partial blank area of the interactive interface, or may be a whole blank area in the interactive interface, that is, an area of the interactive interface excluding other operation control areas, which is not particularly limited in this exemplary embodiment. As shown in fig. 2, the steering control area 1 is a bordered area and is disposed on the right half of the interactive interface, the virtual rocker area 2 is disposed on the left half of the interactive interface, and a virtual rocker 3 and a direction prompt icon for prompting a user to perform an operation are further disposed in the virtual rocker area 2. The user controls movement of the virtual object by controlling the position of the virtual joystick within the virtual joystick region. Steering or aiming of the virtual object is controlled by a sliding operation within the steering control area.
The sliding operation may be a sliding operation with different pressing force degrees applied to the touch screen. The sliding operation may be classified into different levels according to the degree of pressing, and for example, the sliding operation may be classified into a sliding operation of a normal degree of pressing, a sliding operation of a light degree of pressing, and a sliding operation of a heavy degree of pressing. In the present exemplary embodiment, the sliding operation may also be classified into more levels according to the sensitivity of the pressure sensing module.
In the exemplary embodiment, the positions of two adjacent touch points of the sliding operation can be obtained in real time, and the direction of the sliding operation can be judged in real time according to the positions of the two adjacent touch points; and the displacement vector of the sliding operation can be acquired in real time, and the direction of the sliding operation is judged according to the displacement vector of the sliding operation. It should be noted that the manner of acquiring the direction of the sliding operation in the present exemplary embodiment is not limited to this. The pressing force of the sliding operation can be acquired by a pressure sensing module. And acquiring the pressing force degree of the sliding operation and the direction of the sliding operation in real time so as to control the virtual object to rotate based on the direction of the sliding operation and the pressing force degree of the sliding operation.
The controlling of the virtual object to rotate according to the sliding trajectory of the sliding operation may include: determining the steering direction of the virtual object according to the direction of the sliding track of the sliding operation; the sliding track of the virtual object following the sliding operation is controlled to rotate along the steering direction of the virtual object, namely the sliding track of the virtual object following the finger is visually rotated along the steering direction of the virtual object. The steering direction of the virtual object may be the same as the direction of the sliding trajectory of the sliding operation, or may not coincide with the direction of the sliding trajectory of the sliding operation. The present exemplary embodiment is not particularly limited in this regard. The process of controlling the virtual object to rotate according to the sliding track of the sliding operation is influenced by the sensitivity of the sliding screen, and the requirement of a user on high-precision aiming can be met. Visually, the aiming process for the object of attack.
In step S2, when the pressing force is determined to be greater than a preset pressure value, the virtual object is controlled to rotate by a first angle according to the direction of the sliding operation.
In the present exemplary embodiment, the preset pressure value may be set according to the sensitivity of pressure sensing, and may be, for example, 1 newton or 2 newtons, which is not particularly limited in the present exemplary embodiment. The first angle may be 20 °, 50 °, 180 °, or any other angle, and this exemplary embodiment is not particularly limited thereto.
It should be noted that, in the present exemplary embodiment, a plurality of preset pressure values may be set, and a preset angle corresponding to each preset pressure value is set for each preset pressure value, where the first angle is equal to a preset angle corresponding to the preset pressure value. For example, the preset pressure value may include 1, wherein the preset pressure value may be 1 newton, and the preset angle corresponding to the preset pressure value may be 30 degrees, in which case, the first angle is also 30 degrees. When the pressing force degree is greater than 1 newton, the virtual object is controlled to rotate by 30 degrees according to the direction of the sliding operation. For another example, the preset pressure values may further include 3 pressure values, where the 3 preset pressure values may be 1 newton, 2 newton, and 3 newton, and the preset angles corresponding to the 3 preset pressure values one to one may be 30 degrees, 60 degrees, and 90 degrees, in which case, the 3 first angles are also 30 degrees, 60 degrees, and 90 degrees, respectively. When the pressing force degree is greater than 1 Newton and less than or equal to 2 Newtons, controlling the virtual object to rotate for 30 degrees according to the direction of the sliding operation; when the pressing force degree is greater than 2 newtons and less than or equal to 3 newtons, controlling the virtual object to rotate by 60 degrees according to the direction of the sliding operation; when the pressing force degree is greater than 3 newtons, the virtual object is controlled to rotate by 90 degrees according to the direction of the sliding operation.
Through setting up a plurality of preset pressure values, can provide a plurality of optional turned angles for the user, make the user control according to the size of the size control virtual object pivoted angle of pressure degree, improved the precision that the control virtual object turned to, also increased the richness of operation simultaneously.
The manner of rotating the virtual object by the first angle according to the direction of the sliding operation may be that the virtual object directly rotates by the first angle according to the direction of the sliding operation, or that the virtual object rotates by the first angle at a preset angular speed according to the direction of the sliding operation. The preset angular velocity may be preset by the system or adjusted by the user as required, for example, 10rad/s or 15rad/s, which is not particularly limited in this exemplary embodiment, and the preset angular velocity may not be set too small to achieve fast and large-scale turning of the virtual character. From the above, the large rotation of the virtual object is not affected by the screen-sliding sensitivity.
Further, when the pressing force is not more than the preset pressure value, the virtual object is controlled to hold the rotation of the slide trajectory according to the slide operation in step S1, so as to achieve the aiming of the attack object by the user.
The controlling of the virtual object to rotate by the first angle according to the direction of the sliding operation may include the following two ways.
In a first mode, the virtual object is controlled to rotate by a first angle along the direction of the sliding operation. In the present exemplary embodiment, the direction of the slide operation is the same as the turning direction of the virtual object. For example, when the direction of the slide operation is left, the steering direction of the virtual object is also left. When the direction of the slide operation is right, the steering direction of the virtual object is also right. The direction of the sliding operation may not coincide with the turning direction of the virtual object, and for example, when the direction of the sliding operation is left, the turning direction of the virtual object is clockwise, and when the direction of the sliding operation is right, the turning direction of the virtual object is counterclockwise.
And controlling the virtual object to rotate by a first angle in a preset rotation direction according to the direction of the sliding operation. In the present exemplary embodiment, the virtual object is controlled to rotate according to the movement of the virtual object in the preset rotation direction. For example, when the preset rotation direction is a clockwise direction and the rotation direction of the virtual object determined according to the sliding operation is a left direction, the virtual object is controlled to move in the clockwise direction and rotate to the left. For another example, when the preset rotation direction is a counterclockwise direction and the rotation direction of the virtual object determined according to the sliding operation is left, the virtual object is controlled to move in the counterclockwise direction and rotate to the left. It should be noted that the preset rotation direction in the present exemplary embodiment is not limited thereto.
On this basis, when it is determined that the pressing force degree is greater than a preset pressure value, the controlling the virtual object to rotate by a first angle according to the direction of the sliding operation may include: when the pressing degree is judged to be larger than a first preset pressure value and smaller than or equal to a second preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction; and when the pressing degree is judged to be larger than a second preset pressure value, controlling the virtual object to rotate by a third angle along the sliding operation direction.
In the present exemplary embodiment, specific values of the first preset pressure value and the second preset pressure value may be preset by the system or adjusted by the user as needed, for example, the first preset pressure value may be 1 newton, and the second preset pressure value may be 2 newton; the first preset pressure value may also be 1.5 newtons, and the second preset pressure value may also be 3 newtons, which is not particularly limited in the present exemplary embodiment. The specific values of the first angle and the third angle may also be preset by the system or adjusted by the user as needed, for example, the first angle is 20 °, the third angle is 30 °, or the first angle is 60 °, and the third angle is 180 °, which is not particularly limited in this exemplary embodiment.
The above-mentioned process is described by taking the first preset pressure value of 1 newton, the second preset pressure value of 2 newtons, the first angle of 30 °, and the third angle of 60 ° as examples. If the pressing force is larger than 1 Newton and smaller than or equal to 2 Newtons, controlling the virtual object to rotate for 30 degrees according to the direction of the sliding operation; and if the pressing force is greater than 2 Newton, controlling the virtual object to rotate by 60 degrees according to the direction of the sliding operation.
By the mode, a plurality of selectable steering angles can be provided for a user, the user can determine the steering angle of the virtual object by controlling the pressing force degree of the sliding operation, the operability is high, the operation richness is increased, and better experience is brought to the user. It should be noted that, in the present exemplary embodiment, more preset pressure values may also be set according to the sensitivity of pressure sensing, for example, 3 preset pressure values may be set, and 3 steering angles are correspondingly set, and 4 preset pressure values may also be set, and 4 steering angles are correspondingly set. To provide the user with more alternative steering angles.
In summary, a pressure sensing technology is introduced, and the virtual object is controlled to rotate by a first angle through the pressing force of the sliding operation, so that the virtual object is rotated greatly, and compared with the prior art, a user can control the virtual object to perform rapid large-amplitude steering or high-precision aiming through the pressing force of the sliding operation, namely, the rapid large-amplitude steering and the high-precision aiming are both considered; in addition, the pressing force degree is increased only on the basis of the original sliding operation in operation, the operability is strong, and the user experience is good.
Further, the controlling the virtual object to rotate according to the sliding trajectory of the sliding operation may include: calculating a second angle according to the position of the initial touch point of the sliding operation and the position of the current touch point; and controlling the virtual object to rotate by a second angle according to the sliding track of the sliding operation.
In the present exemplary embodiment, the calculating of the second angle may include: the position of the initial touch point of the sliding operation and the position of the current touch point can be obtained through the position obtaining module; determining a concentric circle according to the position of the initial touch point and the position of the current touch point; and forming a first straight line by the circle center of the concentric circle and the position of the initial touch point, and forming a second straight line by the circle center of the concentric circle and the position of the current touch point. And calculating the angle of an included angle formed by the first straight line and the second straight line in the sliding operation direction, and determining the angle of the included angle as a second angle.
On this basis, the first angle in step S2 may be determined in the following manner.
The first angle is a difference value between a preset angle and the second angle, wherein the preset angle corresponds to the preset pressure value, and the preset angle is larger than the second angle. The first angle is a difference value between the second angle and the preset angle, wherein the preset angle corresponds to the preset pressure value, and the preset angle is smaller than the second angle.
In the present exemplary embodiment, a preset angle may be set for the preset pressure value, and it should be noted that, in order to provide more selectable steering angles for the user, a plurality of preset pressure values may be set, and a preset angle corresponding to each preset pressure value is set. For example, the preset pressure values may include 2, wherein the preset pressure values may be 1 newton and 2 newton, respectively, and the preset angles corresponding to the two preset pressure values one to one may be 30 degrees and 50 degrees, respectively. For another example, the preset pressure values may further include 3 pressure values, where the preset pressure values may be 1 newton, 2 newton, and 3 newton, respectively, and the preset angles corresponding to the 3 preset pressure values in a one-to-one manner may be 30 degrees, 50 degrees, and 80 degrees, respectively.
When the pressing force degree is greater than the preset pressure value, comparing a preset angle corresponding to the preset pressure value with a second angle, and if the second angle is greater than the preset angle, the first angle is the difference value between the second angle and the preset angle; if the second angle is smaller than the preset angle, the first angle is the difference value between the preset angle and the second angle.
The preset pressure values are taken as two preset pressure values, wherein the preset pressure values are 1 newton and 2 newton respectively, and the preset angles corresponding to the two preset pressure values one to one are 30 degrees and 60 degrees respectively. If the pressing force is larger than 1 Newton and smaller than 2 Newtons, the preset angle is 30 degrees; at this time, if the second angle is 15 degrees, the first angle is 15 degrees; if the second angle is 40 degrees, the first angle is 10 degrees. If the pressing force is larger than 2 newtons, the preset angle is 60 degrees; at this time, if the second angle is 40 degrees, the first angle is 20 degrees; if the second angle is 85 degrees, the first angle is 25 degrees.
The first angle is determined through the second angle and the preset angle corresponding to the preset pressing degree, so that the virtual object can be prevented from rotating too much, and the rotating angle of the virtual object is prevented from exceeding the expected value of a user.
In summary, when the pressing force degree of the sliding operation is greater than the preset pressure value, the virtual object is controlled to rotate by a first angle according to the direction of the sliding operation, and the large-amplitude rotation of the virtual object is not affected by the screen sliding sensitivity. When the pressing force degree of the sliding operation is not more than the preset pressure value, the virtual object is controlled to hold the rotation of the sliding trajectory according to the sliding operation in step S1, and the speed of the rotation of the virtual object according to the sliding trajectory of the sliding operation is determined by the sensitivity of the sliding screen. The requirement of the user for large-amplitude steering of the virtual object is met, the requirement of the user for aiming precision is met, high-precision aiming and rapid large-amplitude steering of the virtual object are considered, and user experience is good.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In an exemplary embodiment of the present disclosure, there is also provided a virtual object control apparatus, which may be applied to a touch terminal capable of presenting an interactive interface, where the interactive interface may include a steering control area and a virtual object, and as shown in fig. 3, the virtual object control apparatus 100 may include: the detection acquisition module 101 and the control rotation module 102. Wherein:
the detection obtaining module 101 may be configured to, when a sliding operation acting on the steering control area is detected, control the virtual object to rotate according to a sliding track of the sliding operation, and obtain a direction of the sliding operation and a pressing force degree of the sliding operation in real time;
the rotation control module 102 may be configured to control the virtual object to rotate by a first angle according to the direction of the sliding operation when it is determined that the pressing force is greater than a preset pressure value.
The specific details of each virtual object control device module are already described in detail in the corresponding virtual object control method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the apparatus for performing are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 4. The electronic device 600 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, a bus 630 connecting different system components (including the memory unit 620 and the processing unit 610), and a display unit 640.
Wherein the storage unit stores program code that is executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 610 may perform step s1 as shown in fig. 1. when a sliding operation acting on the steering control area is detected, the virtual object is controlled to rotate according to a sliding trajectory of the sliding operation, and the direction of the sliding operation and the degree of pressing force of the sliding operation are acquired in real time; and S2, when the pressing force degree is judged to be larger than a preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. As shown, the network adapter 660 communicates with the other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 5, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (11)

1. A virtual object control method is applied to a touch terminal capable of presenting an interactive interface, wherein the interactive interface comprises a steering control area and a virtual object, and the virtual object control method comprises the following steps:
when the sliding operation acting on the steering control area is detected, determining the steering direction of the virtual object according to the direction of the sliding track of the sliding operation, controlling the virtual object to rotate along the steering direction along with the sliding track, and acquiring the direction of the sliding operation and the pressing force of the sliding operation in real time;
and when the pressing degree is judged to be larger than a preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction.
2. The virtual object control method according to claim 1, wherein the determining a steering direction of the virtual object according to a direction of a sliding trajectory of the sliding operation, the controlling the virtual object to turn in the steering direction following the sliding trajectory, includes:
calculating a second angle according to the position of the initial touch point of the sliding operation and the position of the current touch point;
and controlling the virtual object to rotate by a second angle according to the sliding track of the sliding operation.
3. The virtual object control method according to claim 1, wherein the first angle is equal to a preset angle corresponding to the preset pressure value.
4. The virtual object control method according to claim 2, wherein the first angle is a difference between a preset angle and the second angle, wherein the preset angle corresponds to the preset pressure value, and the preset angle is greater than the second angle.
5. The virtual object control method according to claim 4, wherein the first angle is a difference between the second angle and the preset angle, wherein the preset angle corresponds to the preset pressure value, and the preset angle is smaller than the second angle.
6. The method according to claim 1, wherein the controlling the virtual object to rotate by a first angle according to the direction of the sliding operation when the pressing force degree is determined to be greater than a preset pressure value comprises:
when the pressing degree is judged to be larger than a first preset pressure value and smaller than or equal to a second preset pressure value, controlling the virtual object to rotate by a first angle according to the sliding operation direction;
and when the pressing degree is judged to be larger than a second preset pressure value, controlling the virtual object to rotate by a third angle along the sliding operation direction.
7. The virtual object control method according to claim 1, wherein the controlling of the virtual object to rotate by a first angle according to the direction of the sliding operation includes:
and controlling the virtual object to rotate by a first angle along the direction of the sliding operation.
8. The virtual object control method according to claim 1, wherein the controlling of the virtual object to rotate by a first angle according to the direction of the sliding operation includes:
and controlling the virtual object to rotate by a first angle in a preset rotation direction according to the direction of the sliding operation.
9. A virtual object control device is applied to a touch terminal capable of presenting an interactive interface, wherein the interactive interface comprises a steering control area and a virtual object, and the virtual object control device comprises:
the detection acquisition module is used for determining the steering direction of the virtual object according to the direction of a sliding track of the sliding operation when the sliding operation acting on the steering control area is detected, controlling the virtual object to rotate along the steering direction along with the sliding track, and acquiring the direction of the sliding operation and the pressure degree of the sliding operation in real time;
and the control rotation module is used for controlling the virtual object to rotate by a first angle according to the sliding operation direction when the pressing degree is judged to be greater than a preset pressure value.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the virtual object control method of any one of claims 1 to 8.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the virtual object control method of any of claims 1-8 via execution of the executable instructions.
CN201710515388.2A 2017-06-29 2017-06-29 Virtual object control method and device, storage medium and electronic equipment Active CN107329690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710515388.2A CN107329690B (en) 2017-06-29 2017-06-29 Virtual object control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710515388.2A CN107329690B (en) 2017-06-29 2017-06-29 Virtual object control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107329690A CN107329690A (en) 2017-11-07
CN107329690B true CN107329690B (en) 2020-04-17

Family

ID=60199134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710515388.2A Active CN107329690B (en) 2017-06-29 2017-06-29 Virtual object control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107329690B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211350B (en) * 2017-12-07 2021-06-04 网易(杭州)网络有限公司 Information processing method, electronic device, and storage medium
CN108379843B (en) * 2018-03-16 2022-05-31 网易(杭州)网络有限公司 Virtual object control method and device
CN108427502B (en) * 2018-03-19 2020-06-23 联想(北京)有限公司 Data processing method and electronic equipment
CN108744513A (en) * 2018-04-24 2018-11-06 网易(杭州)网络有限公司 Method of sight, device, electronic equipment in shooting game and storage medium
CN108579079B (en) * 2018-04-27 2022-02-18 网易(杭州)网络有限公司 Virtual object steering control method and device, electronic equipment and storage medium
CN108771859B (en) * 2018-06-22 2020-06-30 腾讯科技(深圳)有限公司 Virtual scene display method and device, electronic device and storage medium
CN109529320B (en) * 2018-12-29 2022-04-12 网易(杭州)网络有限公司 Steering control method and device in game
CN114253421A (en) * 2021-12-16 2022-03-29 北京有竹居网络技术有限公司 Control method, device, terminal and storage medium of virtual model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103329165A (en) * 2011-01-07 2013-09-25 索尼电脑娱乐美国公司 Scaling pixel depth values of user-controlled virtual object in three-dimensional scene
CN105641927A (en) * 2015-12-31 2016-06-08 网易(杭州)网络有限公司 Virtual object steering control method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101531363B1 (en) * 2008-12-10 2015-07-06 삼성전자주식회사 Method of controlling virtual object or view point on two dimensional interactive display
US9436369B2 (en) * 2014-09-26 2016-09-06 Disney Enterprises, Inc. Touch interface for precise rotation of an object

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103329165A (en) * 2011-01-07 2013-09-25 索尼电脑娱乐美国公司 Scaling pixel depth values of user-controlled virtual object in three-dimensional scene
CN105641927A (en) * 2015-12-31 2016-06-08 网易(杭州)网络有限公司 Virtual object steering control method and device

Also Published As

Publication number Publication date
CN107329690A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107329690B (en) Virtual object control method and device, storage medium and electronic equipment
CN107913520B (en) Information processing method, information processing device, electronic equipment and storage medium
CN108579089B (en) Virtual item control method and device, storage medium and electronic equipment
CN107678647B (en) Virtual shooting subject control method and device, electronic equipment and storage medium
CN108037888B (en) Skill control method, skill control device, electronic equipment and storage medium
CN107008003B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN106155553B (en) Virtual object motion control method and device
US9436369B2 (en) Touch interface for precise rotation of an object
CN106687922B (en) Parametric inertia and API
US8957852B2 (en) Sensor mapping
CN107992251B (en) Skill control method, skill control device, electronic equipment and storage medium
CN107297073B (en) Method and device for simulating peripheral input signal and electronic equipment
CN107273037A (en) Virtual object control method and device, storage medium, electronic equipment
CN108536374B (en) Virtual object direction control method and device, electronic equipment and storage medium
CN108553892B (en) Virtual object control method and device, storage medium and electronic equipment
KR20160001600A (en) Terminal device
CN107562201B (en) Directional interaction method and device, electronic equipment and storage medium
CN105641927A (en) Virtual object steering control method and device
WO2019053980A1 (en) Information processing device and program
CN110215685B (en) Method, device, equipment and storage medium for controlling virtual object in game
CN108245889B (en) Free visual angle orientation switching method and device, storage medium and electronic equipment
CN116459506A (en) Game object selection method and device
CN111467794A (en) Game interaction method and device, electronic equipment and storage medium
CN111481923B (en) Rocker display method and device, computer storage medium and electronic equipment
CN111530065A (en) Game control method and device, computer storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant