CN105739855B - Virtual objects motion control method and device - Google Patents

Virtual objects motion control method and device Download PDF

Info

Publication number
CN105739855B
CN105739855B CN201610044352.6A CN201610044352A CN105739855B CN 105739855 B CN105739855 B CN 105739855B CN 201610044352 A CN201610044352 A CN 201610044352A CN 105739855 B CN105739855 B CN 105739855B
Authority
CN
China
Prior art keywords
external force
virtual objects
pressing
pressing dynamics
pressure
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
CN201610044352.6A
Other languages
Chinese (zh)
Other versions
CN105739855A (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 CN201610044352.6A priority Critical patent/CN105739855B/en
Publication of CN105739855A publication Critical patent/CN105739855A/en
Application granted granted Critical
Publication of CN105739855B publication Critical patent/CN105739855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

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 disclosure is directed to a kind of virtual objects motion control method and devices.Method includes that the display area of control touch control device shows an operation interface, includes at least one in operation interface and stores power control area;Periodically detecting stores the pressing operation of power control area, and obtains the duration of pressing operation and the pressing dynamics of pressing operation;When the duration of pressing operation being no more than a preset time threshold, the external force to be applied to a virtual objects is determined according to the pressing dynamics of pressing operation;When the duration of pressing operation being more than preset time threshold, the external force to be applied to virtual objects is determined according to the pressing dynamics of pressing operation and duration;Determining external force is applied to change the movement of the virtual objects to virtual objects.The disclosure controls the movement of virtual objects according to the pressing dynamics of pressing operation, keeps feedback effects and user's expection more consistent.

Description

Virtual objects motion control method and device
Technical field
This disclosure relates to human-computer interaction technique field, in particular to a kind of virtual objects motion control method and void Quasi- object motion control device.
Background technique
With the rapid development of mobile communication technology, occur more and more game applications on touch control terminal.It is swimming It plays in the operational process of application, touch control terminal shows various game objects according to certain layout, to be in user Existing scene of game and offer game operation interface.
In touch control terminal game application, the game application of sports class is liked by a large amount of player.In many sport It, can the operation in need that store power in sports games application.In the prior art, power control is stored generally by click or long-pressing Region processed and carry out store power control, and then by savings strength the movement of virtual objects is controlled.
With reference to shown in Fig. 1, in the sport games such as winning eleven application, long-pressing power can be stored in operation interface 10 Control area 101 makes sportsman carry out storage power, and then sportsman acts on virtual objects 102 (football) with the strength put aside, from And change the movement of virtual objects 102, the track that control virtual objects 102 move;For example, shooting action, passing etc. are equal Need to carry out to store power operation through the above way.
However, judging the technology of the storage power size to be applied to virtual objects 102 above by the length of time of click Scheme, it is difficult to realize the control of fast accurate, true storage power effect cannot be restored.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
For subproblem in the prior art or whole issue, the disclosure provides a kind of virtual objects motion control side Method and virtual objects motion control device.
According to the first aspect of the embodiments of the present disclosure, a kind of virtual objects motion control method is provided, comprising:
The display area for controlling the touch control device shows an operation interface, includes at least one in the operation interface and stores power Control area;
Periodically detecting it is described store power control area pressing operation, and obtain the pressing operation duration and The pressing dynamics of the pressing operation;
When the duration of the pressing operation being no more than a preset time threshold, according to the pressing of the pressing operation Dynamics determines the external force to be applied to a virtual objects;
When the duration of the pressing operation being more than the preset time threshold, according to the pressing of the pressing operation Dynamics and duration determine the external force to be applied to the virtual objects;
The determining external force is applied to change the movement of the virtual objects to the virtual objects.
It is described to be determined according to the pressing dynamics of the pressing operation to described in a kind of exemplary embodiment of the disclosure Virtual objects external force to be applied includes:
Judge that the pressing dynamics are in first pressure section, second pressure section or third pressure range;Described first Maximum value is less than minimum value in second pressure section in pressure range, and maximum value is less than third pressure in the second pressure section Minimum value in section;
When the pressing dynamics are in the first pressure section, determine that the external force to be applied to the virtual objects is First external force;
When the pressing dynamics are in the second pressure section, determine that the external force to be applied to the virtual objects is Second external force;Second external force is greater than first external force;
When the pressing dynamics are in the third pressure range, determine that the external force to be applied to the virtual objects is Third external force;The third external force is greater than second external force.
In a kind of exemplary embodiment of the disclosure, the pressing dynamics according to the pressing operation and it is lasting when Between determine that the external force to be applied to the virtual objects includes:
According to formula FT=FT-1+FxK determines the external force to be applied to the virtual objects;
Wherein, FTThe external force to be applied determined in detection cycle, F are operated for current pressT-1For previous pressing behaviour Make the external force to be applied determined in detection cycle, k is constant;
In current press operation detection cycle, when the pressing dynamics are in the first pressure section, FxIt is described First external force;When the pressing dynamics are in the second pressure section, FxFor second external force;The pressing dynamics are in When the third pressure range, FxFor the third external force.
In a kind of exemplary embodiment of the disclosure, the pressing dynamics according to the pressing operation and it is lasting when Between determine that the external force to be applied to the virtual objects includes:
According to formula F1=F0+F0Tk determines the external force to be applied to the virtual objects;
Wherein, F1For the determining external force to be applied, k is constant, and t is described after the preset time threshold presses The lasting duration of press operation;
In the preset time threshold, when the pressing dynamics are in the first pressure section, F0It is described first External force;When the pressing dynamics are in the second pressure section, F0For second external force;The pressing dynamics are in described When third pressure range, F0For the third external force.
It further include storing power display area, the void in a kind of exemplary embodiment of the disclosure, in the operation interface Quasi- object motion control method further include:
It controls the storage power display area and shows different marks, to indicate that is currently determined waits applying to the virtual objects The external force added.
In a kind of exemplary embodiment of the disclosure, the virtual objects motion control method further include:
Whether the external force to be applied that judgement currently determines, which reaches one, is preset outer force threshold, and is currently determined in judgement The external force to be applied reach it is described preset outer force threshold when, be not further added by the external force to be applied to the virtual objects.
According to the second aspect of an embodiment of the present disclosure, a kind of virtual objects motion control device is additionally provided, being applied to can Realize the touch control device of pressure-sensing;The virtual objects motion control device includes:
Module is presented, the display area for controlling the touch control device shows an operation interface, in the operation interface Power control area is stored including at least one;
Detecting module for periodically detecting the pressing operation for storing power control area, and obtains the pressing operation Duration and the pressing operation pressing dynamics;
First external force determining module, when being no more than a preset time threshold for the duration in the pressing operation, The external force to be applied to a virtual objects is determined according to the pressing dynamics of the pressing operation;
Second external force determining module, when being more than the preset time threshold for the duration in the pressing operation, The external force to be applied to the virtual objects is determined according to the pressing dynamics of the pressing operation and duration;
Motion-control module, for applying the determining external force to the virtual objects to change the virtual objects Movement.
In a kind of exemplary embodiment of the disclosure, the first external force determining module includes:
First judging unit, for judging that the pressing dynamics are in first pressure section, second pressure section or third Pressure range;Maximum value is less than minimum value in second pressure section in the first pressure section, in the second pressure section Maximum value is less than minimum value in third pressure range;
First external force computing unit, for determining to described when the pressing dynamics are in the first pressure section Virtual objects external force to be applied is the first external force;
Second external force computing unit, for determining to described when the pressing dynamics are in the second pressure section Virtual objects external force to be applied is the second external force;Second external force is greater than first external force;
Third external force computing unit, for determining to described when the pressing dynamics are in the third pressure range Virtual objects external force to be applied is third external force;The third external force is greater than second external force.
In a kind of exemplary embodiment of the disclosure, the second external force determining module includes:
4th external force computing unit, for according to formula FT=FT-1+FxK determines to be applied to the virtual objects outer Power;
Wherein, FTThe external force to be applied determined in detection cycle, F are operated for current pressT-1For previous pressing behaviour Make the external force to be applied determined in detection cycle, k is constant;
In current press operation detection cycle, when the pressing dynamics are in the first pressure section, FxIt is described First external force;When the pressing dynamics are in the second pressure section, FxFor second external force;The pressing dynamics are in When the third pressure range, FxFor the third external force.
In a kind of exemplary embodiment of the disclosure, the second external force determining module includes:
5th external force computing unit, for according to formula F1=F0+F0Tk determination is to be applied to the virtual objects External force;
Wherein, F1For the determining external force to be applied, k is constant, and t is described after the preset time threshold presses The lasting duration of press operation;
In the preset time threshold, when the pressing dynamics are in the first pressure section, F0It is described first External force;When the pressing dynamics are in the second pressure section, F0For second external force;The pressing dynamics are in described When third pressure range, F0For the third external force.
It further include storing power display area in a kind of exemplary embodiment of the disclosure, in the operation interface, it is described to be in Now module includes:
Display control unit is identified, shows different marks for controlling the storage power display area, to indicate current true The fixed external force to be applied to the virtual objects.
In a kind of exemplary embodiment of the disclosure, the virtual objects motion control device further include:
External force control module, for judging whether the external force to be applied currently determined reaches a default external force threshold Value, and when the external force to be applied that judgement currently determines reaches the default outer force threshold, it is not further added by the void Quasi- object external force to be applied.
Virtual objects motion control method and device in a kind of embodiment of the disclosure, by obtaining to storage power control zone The pressing dynamics and compressing time in domain, according to the pressing dynamics of the pressing operation of user, compressing time or pressing dynamics and Compressing time is applied to the external force of virtual objects to be calculated, thus the movement of more precise control virtual objects, preferably It simulates according to pressing operation and adjusts the real processes of virtual objects movement, user is made to obtain more true feedback effects.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of operation interface of game application.
Fig. 2 schematically shows a kind of flow chart of virtual objects motion control method in disclosure exemplary embodiment.
Fig. 3 schematically shows a kind of operation interface of game application.
Fig. 4 schematically shows a kind of flow chart of step S30 in disclosure exemplary embodiment.
Fig. 5 schematically shows a kind of block diagram of virtual objects motion control device in disclosure exemplary embodiment.
Fig. 6 schematically shows a kind of block diagram of the first external force determining module in disclosure exemplary embodiment.
Fig. 7 schematically shows a kind of block diagram that module is presented in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
With the development of electronic technology, the touch control terminal for being able to carry out pressure-sensing is had been realized at present, so as to New manipulation and input mode are brought for user.Have for example, Huawei Company and Apple Inc. have issued in 2015 The touch-control smart phone of pressure-sensing.Such touch control terminal can not only sense the touch operation of user as the defeated of touch control terminal Enter, can also be perceived by size, position and the action time to pressure, thus by pressure separately as touch control terminal Input, or pressure and other input modes are combined into the input as touch control terminal, are brought much for the operation of user Convenience and interest.
A kind of virtual objects motion control method is provided firstly in this example embodiment, the virtual objects motion control Method can be applied to the touch control terminal of above-mentioned achievable pressure-sensing.The touch control device for example can for mobile phone, tablet computer, The various electronic equipments for having Touch Screen such as laptop, game machine, PDA.But it should be recognized that in part non-touch-control Keyboard and mouse action may also be modeled as touch control operation by modes such as simulators in equipment, this mode equally can be with It is considered as touch control device described in the disclosure.With reference to shown in Fig. 2 and Fig. 3, the virtual objects motion control method can be with The following steps are included:
S10. the display area for controlling the touch control device shows an operation interface 10, includes at least in the operation interface One stores power control area 101 and needs to control the virtual objects 102 of movement.
With reference to shown in Fig. 3, game application controls the touching of touch control device by the application programming interfaces (API) of touch control device It controls screen and shows game operation interface 10, the operation interface 10 in this example embodiment can be can all showing for touch control device Show region, that is, is displayed in full screen;Be also possible to touch control device part can display area, i.e. window shows.The operation interface 10 In may include a storage power control area 101 and virtual objects 102.It in addition to this, can also include virtual in operation interface 10 Sports scene, virtual natural environment, information panel control area, virtual portrait etc..Storing power control area 101 for example can be behaviour Make region fixed in interface, is also possible to the region etc. of the sliding according to user's finger and movement.
Above-mentioned virtual objects 102 can there are many form of expression, such as can for football, basketball, shot, golf, Baseball, billiard ball etc. are ball, and being also possible to flying disc, javelin, bow and arrow etc. arbitrarily can trigger changing for its motion state by storing power Become.
S20. the pressing operation for storing power control area 101 is periodically detected, and obtains continuing for the pressing operation The pressing dynamics of time and the pressing operation.
According to the difference of the pressure value of pressing operation, pressing operation can be divided into multiple and different grades, such as can To be divided into weight, light pressure and pole light press (can be considered and do not press), according to the sensitivity of pressure sensing module, may be used also To carry out the other division of more stages.After detecting pressing operation, the pressure parameter such as pressing of the pressing operation is obtained Pressure Value Data, pressing duration obtain based on these parameters the desired virtual objects 102 that are applied to convenient for subsequent External force.
S30. when the duration of the pressing operation being no more than a preset time threshold, according to the pressing operation Pressing dynamics determine the external force to be applied to a virtual objects.
In this example embodiment, a preset time threshold can be preset, such as apply to virtual objects calculating When the external force added, as long as the pressing operation within the preset time threshold period, which is only pressed with pressing operation Surging is related.Therefore, in the game scene for not needing to store power too much, the pressing of user's short time or energy is single clickd on Enough obtain the desired external force for being applied to virtual objects.
S40. when the duration of the pressing operation being more than the preset time threshold, according to the pressing operation Pressing dynamics and duration determine the external force to be applied to the virtual objects.
In this step, if the duration of pressing operation is more than the preset time threshold, when calculating external force, Not only to consider pressing dynamics, it is also necessary to consider the duration of pressing.It, can be in order to storage power size in certain game scenes It is further adjusted, to obtain the desired external force for being applied to virtual objects 102.Therefore, the external force of this step calculates Mode external force effect obtained, can preferably meet the desired operation effect of user.
S50. the determining external force is applied to change the movement of the virtual objects to the virtual objects.
Virtual objects motion control method and device in the present exemplary embodiment, by obtaining to storage power control area Pressing dynamics and compressing time, according to the pressing dynamics of the pressing operation of user, compressing time or pressing dynamics and pressing The external force for being applied to virtual objects is calculated in time, so that the movement of more precise control virtual objects, is preferably simulated The real processes of virtual objects movement are adjusted according to pressing operation out, solve to be difficult to accurately control in storing power operation game process The problem of system movement, user is made to obtain more true feedback effects.
In another exemplary embodiment of the present disclosure, described according in above-mentioned steps S30 with reference to shown in Fig. 4 The pressing dynamics of pressing operation determine that the external force to be applied to the virtual objects may include:
S31. judge that the pressing dynamics are in first pressure section, second pressure section or third pressure range;It is described Maximum value is less than minimum value in second pressure section in first pressure section, and maximum value is less than third in the second pressure section Minimum value in pressure range.First pressure section is, for example, 0 newton~2.9 newton, and first pressure section is, for example, 3 newton~4 Newton, first pressure section are, for example, 4.9 newton~8 newton.
S32. it when the pressing dynamics are in the first pressure section, determines to be applied to the virtual objects outer Power is the first external force.Such as 0 newton~corresponding 2.9 newton are the first external force.
S33. it when the pressing dynamics are in the second pressure section, determines to be applied to the virtual objects outer Power is the second external force;Second external force is greater than first external force.Such as 3 newton~corresponding 4 newton are the second external force.
S34. it when the pressing dynamics are in the third pressure range, determines to be applied to the virtual objects outer Power is third external force;The third external force is greater than second external force.Such as 4.9 newton~corresponding 8 newton are third external force.
With the increase of press pressure, also gradually increased to be applied to the external force of virtual objects.In the present exemplary embodiment In, although having just distinguished three pressure ranges, it should be appreciated that more pressure ranges can be divided into, or can not also area Partial pressure section makes the corresponding external force value of each pressure value, the motion control of virtual objects can also be made more accurate in this way. In some scene of game for needing subtle control, such as bowling, it is one corresponding to can choose a specific pressure value External force value, wherein can also equally be with the increase of press pressure value, external force value is consequently increased.
In another exemplary embodiment of the present disclosure, in above-mentioned steps S40, the pressing according to the pressing operation Dynamics and duration determine that the external force to be applied to the virtual objects may include:
According to formula FT=FT-1+ FxK (formula one) determines the external force to be applied to the virtual objects.
Wherein, FTThe external force to be applied determined in detection cycle, F are operated for current pressT-1For previous pressing behaviour Make the external force to be applied determined in detection cycle, k is constant;In current press operation detection cycle, the pressing When dynamics is in the first pressure section, FxFor first external force;The pressing dynamics are in the second pressure section When, FxFor second external force;When the pressing dynamics are in the third pressure range, FxFor the third external force.
As previously mentioned, being calculated when the duration of the pressing operation of user being more than preset time threshold (such as 1 second) Two factors of press pressure and duration can be considered to be applied to the external force on dummy object.Be periodically detected user by Press operation, the detection cycle are, for example, 0.1 second;If the external force to be applied determined was F at 1 secondT0, at 1.1 seconds, The pressing dynamics are in the third pressure range, and the corresponding third external force is Fx3, then at 1.1 seconds described in determination External force F to be appliedT1=F0+ Fx3·k;At 1.2 seconds, the pressing dynamics are in the second pressure section, corresponding described Second external force is Fx2, then at 1.2 seconds determine the external force F to be appliedT2=F1+ Fx2K=F0+ Fx3K+Fx2· k;At 1.3 seconds, the pressing dynamics are in the third pressure range, and the corresponding third external force is Fx3, then at 1.3 seconds The determining external force F to be appliedT2=F2+ Fx3K=F0+ Fx3·k+Fx2·k+Fx3K etc..The constant k can be by Game services quotient sets on demand according to the difference of game application type, and particular determination is not done to this in the present exemplary embodiment.
By the above-mentioned means, user can be made finely accurately to adjust the external force to be applied, increase considerably The playability of game application, can also be with to the time needed for the desired external force for being applied to virtual objects of user moreover, adjusting It is changed according to the pressing dynamics of user, so that user obtains more true feedback effects.
In the present embodiment, it can be understood as according to the calculation for the external force for being applied to virtual objects with pressing dynamics Increase, the external force being calculated is consequently increased, although defining the mode of increasing degree in above-mentioned formula, should be managed Other modes can be had by solving it, it is not limited to the mode enumerated in this example embodiment.
In another exemplary embodiment of the present disclosure, in above-mentioned steps S40, the pressing according to the pressing operation Dynamics and duration determine that the external force to be applied to the virtual objects may include:
According to formula F1=F0+F0Tk (formula two) determines the external force to be applied to the virtual objects.
Wherein, F1For the determining external force to be applied, k is constant, and t is described after the preset time threshold presses The lasting duration of press operation.In the preset time threshold, when the pressing dynamics are in the first pressure section, F0For First external force;When the pressing dynamics are in the second pressure section, F0For second external force;The pressing dynamics When in the third pressure range, F0For the third external force.
External force calculation and the difference of the external force calculation of a upper exemplary embodiment in the present embodiment be, The detection cycle of pressing operation is considered in a upper exemplary embodiment, and is calculated based on the pressing dynamics in detection cycle External force, and in the present embodiment, after beyond preset time threshold, when the adjustment of the external force to be applied only continues with pressing Between be positively correlated;I.e. with the increase of pressing duration, the calculated external force of institute is also increased with it.Such as preset time threshold is 1 second, detect that the pressing dynamics at the 1st second are in the third pressure range, the corresponding third external force is F03;Pressing Duration is 3 seconds, then at 3 seconds, the calculated external force of institute was F03+3F03·k;Pressing the duration is 5.2 seconds, then 5.2 The calculated external force of institute is F when the second03+ 4.2F03K etc..The constant k can be by game services quotient according to game application class The difference of type is set on demand, and particular determination is not done to this in the present exemplary embodiment.
In an exemplary embodiment of the present disclosure, the virtual objects motion control method can also include:
Whether the external force to be applied that judgement currently determines, which reaches one, is preset outer force threshold, and is currently determined in judgement The external force to be applied reach it is described preset outer force threshold when, be not further added by the external force to be applied to the virtual objects.
No matter calculating the external force for being applied to virtual objects in which way, when the external force, which exceeds, presets outer force threshold, all It is not further added by external force, to preferably simulate truth.
It further include storing power display area 103, the virtual objects motion control side with continued reference to Fig. 3, in operation interface 10 Method can also include:
Control the storage power display area 103 and show different marks, with indicate currently determine to the virtual objects External force to be applied.
The mark can be to be realized by way of progress bar;It is also possible to using same pattern with different colors come generation The different size of external force to be applied of table, such as red expression external force to be applied are very big, and green identifies external force very little to be applied, yellow Indicate certain external force to be applied;Or be also possible to be the external force to be applied for respectively representing different strength using different pattern, If external force to be applied is smaller, identified with the first pattern, such as star pattern;If external force to be applied is larger, with Two patterns identify, such as solar pattern etc.;In this way, user can will be apparent that recognizing whether current pressing dynamics are suitable And press the event of continuing, if need to adjust pressing dynamics and continue to press.In this example embodiment, the storage power is aobvious Show that the shape in region 103 can show as wide long rectangular area and can also show to be suitable for the game application that horizontal version is shown Particular determination is not done to this in the present exemplary embodiment to be suitable for the game application that vertical version is shown for U-shape.
The virtual objects motion control method that disclosure exemplary embodiment provides, by obtaining to storage power control area Pressing dynamics and compressing time, according to the pressing dynamics of the pressing operation of user, compressing time or pressing dynamics and pressing The external force for being applied to virtual objects is calculated in time, to control the movement of virtual objects, obtained control effect with The operating effect of user is consistent, meets experience effect expected from user, improves the degree true to nature of game, solves related skill The problem for storing the effect experience difference of power is only controlled in art by the mode of long-pressing screen.
Further, a kind of virtual objects motion control device is additionally provided in this example embodiment, is applied to a touching Control equipment.With reference to shown in Fig. 5, the virtual objects motion control device 7 may include present module 71, detecting module 72, First external force determining module 73, the second external force determining module 74 and motion-control module 75.Wherein:
Module 71 is presented, the display area for controlling the touch control device shows an operation interface, the operation interface In include at least one store power control area.
Detecting module 72 for periodically detecting the pressing operation for storing power control area, and obtains the pressing behaviour The pressing dynamics of the duration of work and the pressing operation.
First external force determining module 73 is no more than a preset time threshold for the duration in the pressing operation When, the external force to be applied to a virtual objects is determined according to the pressing dynamics of the pressing operation.
Second external force determining module 74 is more than the preset time threshold for the duration in the pressing operation When, the external force to be applied to the virtual objects is determined according to the pressing dynamics of the pressing operation and duration.
Motion-control module 75, for applying the determining external force to the virtual objects to change the virtual objects Movement.
With reference to shown in Fig. 6, in a kind of exemplary embodiment of the disclosure, the first external force determining module 73 is wrapped It includes:
First judging unit 81, for judging that the pressing dynamics are in first pressure section, second pressure section or Three pressure ranges;Maximum value is less than minimum value in second pressure section, the second pressure section in the first pressure section Middle maximum value is less than minimum value in third pressure range.
First external force computing unit 82, for determining to institute when the pressing dynamics are in the first pressure section Stating virtual objects external force to be applied is the first external force.
Second external force computing unit 83, for determining to institute when the pressing dynamics are in the second pressure section Stating virtual objects external force to be applied is the second external force;Second external force is greater than first external force.
Third external force computing unit 84, for determining to institute when the pressing dynamics are in the third pressure range Stating virtual objects external force to be applied is third external force;The third external force is greater than second external force.
In a kind of exemplary embodiment of the disclosure, the second external force determining module 74 includes:
4th external force computing unit, for according to formula FT=FT-1+FxK determines to be applied to the virtual objects outer Power.
Wherein, FTThe external force to be applied determined in detection cycle, F are operated for current pressT-1For previous pressing behaviour Make the external force to be applied determined in detection cycle, k is constant.
In current press operation detection cycle, when the pressing dynamics are in the first pressure section, FxIt is described First external force;When the pressing dynamics are in the second pressure section, FxFor second external force;The pressing dynamics are in When the third pressure range, FxFor the third external force.
In a kind of exemplary embodiment of the disclosure, the second external force determining module 74 includes:
5th external force computing unit, for according to formula F1=F0+F0Tk determination is to be applied to the virtual objects External force.
Wherein, F1For the determining external force to be applied, k is constant, and t is described after the preset time threshold presses The lasting duration of press operation;
In the preset time threshold, when the pressing dynamics are in the first pressure section, F0It is described first External force;When the pressing dynamics are in the second pressure section, F0For second external force;The pressing dynamics are in described When third pressure range, F0For the third external force.
It further include storing power to show in a kind of exemplary embodiment of the disclosure, in the operation interface with reference to shown in Fig. 7 Show region, the presentation module 71 includes:
Display control unit 11 is identified, different marks is shown for controlling the storage power display area, to indicate current The determining external force to be applied to the virtual objects.
With continued reference to Fig. 5, in a kind of exemplary embodiment of the disclosure, the virtual objects motion control device is also wrapped It includes:
External force controls mould 76, for judging whether the external force to be applied currently determined reaches a default external force threshold Value, and when the external force to be applied that judgement currently determines reaches the default outer force threshold, it is not further added by the void Quasi- object external force to be applied.
Virtual objects motion control device in a kind of embodiment of the disclosure presses storage power control area by obtaining Surging and compressing time, when according to the pressing dynamics of the pressing operation of user, compressing time or pressing dynamics and pressing Between the external force for being applied to virtual objects is calculated, to control the movement of virtual objects, grasped to simulate according to pressing Make to solve accurately control asking for movement in storing power operation game process to adjust the real processes of virtual objects movement Topic obtains user more true so that preferably simulation is actual uses scene, while also consistent with the operating effect of user Real feedback effects.
The detail of each module is moved in corresponding virtual objects and is controlled in above-mentioned virtual objects motion control device It has carried out wanting to describe in detail in method processed, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) is executed according to disclosure embodiment Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

1. a kind of virtual objects motion control method, the touch control device applied to achievable pressure-sensing;It is characterized in that, described Virtual objects motion control method includes:
The display area for controlling the touch control device shows an operation interface, and one is included at least in the operation interface and stores power control Region;
The periodically detecting pressing operation for storing power control area, and obtain duration of the pressing operation and described The pressing dynamics of pressing operation;
When the duration of the pressing operation being no more than a preset time threshold, the pressure that the pressing dynamics are in is judged Section, and the pressure range according at the pressing dynamics determines virtual objects external force to be applied;
When the duration of the pressing operation being more than the preset time threshold, according to the pressing dynamics of the pressing operation And the duration determines the external force to be applied to the virtual objects;
The determining external force is applied to change the movement of the virtual objects to the virtual objects.
2. virtual objects motion control method according to claim 1, which is characterized in that the judgement pressing dynamics The pressure range being in, and the pressure range according at the pressing dynamics determines virtual objects external force to be applied Include:
Judge that the pressing dynamics are in first pressure section, second pressure section or third pressure range;The first pressure Maximum value is less than minimum value in second pressure section in section, and maximum value is less than third pressure range in the second pressure section Middle minimum value;
When the pressing dynamics are in the first pressure section, determine that the external force to be applied to the virtual objects is first External force;
When the pressing dynamics are in the second pressure section, determine that the external force to be applied to the virtual objects is second External force;Second external force is greater than first external force;
When the pressing dynamics are in the third pressure range, determine that the external force to be applied to the virtual objects is third External force;The third external force is greater than second external force.
3. virtual objects motion control method according to claim 2, which is characterized in that described according to the pressing operation Pressing dynamics and the duration determine that the external force to be applied to the virtual objects includes:
According to formula FT=FT-1+FxK determines the external force to be applied to the virtual objects;
Wherein, FTThe external force to be applied determined in detection cycle, F are operated for current pressT-1For the inspection of previous pressing operation The external force to be applied determined in the period is surveyed, k is constant;
In current press operation detection cycle, when the pressing dynamics are in the first pressure section, FxOutside described first Power;When the pressing dynamics are in the second pressure section, FxFor second external force;The pressing dynamics are in described the When three pressure ranges, FxFor the third external force.
4. virtual objects motion control method according to claim 2, which is characterized in that described according to the pressing operation Pressing dynamics and the duration determine that the external force to be applied to the virtual objects includes:
According to formula F1=F0+F0Tk determines the external force to be applied to the virtual objects;
Wherein, F1For the determining external force to be applied, k is constant, and t is the pressing behaviour after the preset time threshold Make lasting duration;
In the preset time threshold, when the pressing dynamics are in the first pressure section, F0For first external force; When the pressing dynamics are in the second pressure section, F0For second external force;The pressing dynamics are in the third When pressure range, F0For the third external force.
5. virtual objects motion control method according to claim 3 or 4, which is characterized in that in the operation interface also Including storing power display area, the virtual objects motion control method further include:
It controls the storage power display area and shows different marks, it is to be applied to the virtual objects to indicate currently to determine External force.
6. virtual objects motion control method according to claim 3 or 4, which is characterized in that the virtual objects movement Control method further include:
Whether the external force to be applied that judgement currently determines, which reaches one, is preset outer force threshold, and the institute currently determining in judgement State external force to be applied reach it is described preset outer force threshold when, be not further added by the external force to be applied to the virtual objects.
7. a kind of virtual objects motion control device, the touch control device applied to achievable pressure-sensing;It is characterized in that, described Virtual objects motion control device includes:
Module is presented, the display area for controlling the touch control device shows an operation interface, in the operation interface at least Power control area is stored including one;
Detecting module for periodically detecting the pressing operation for storing power control area, and obtains holding for the pressing operation The pressing dynamics of continuous time and the pressing operation;
First external force determining module, when being no more than a preset time threshold for the duration in the pressing operation, judgement The pressure range that the pressing dynamics are in, and the pressure range according at the pressing dynamics determines the virtual objects External force to be applied;
Second external force determining module, when being more than the preset time threshold for the duration in the pressing operation, according to The pressing dynamics of the pressing operation and duration determine the external force to be applied to the virtual objects;
Motion-control module, for applying the determining external force to the virtual objects to change the fortune of the virtual objects It is dynamic.
8. virtual objects motion control device according to claim 7, which is characterized in that the first external force determining module Include:
First judging unit, for judging that the pressing dynamics are in first pressure section, second pressure section or third pressure Section;Maximum value is less than minimum value in second pressure section, maximum in the second pressure section in the first pressure section Value is less than minimum value in third pressure range;
First external force computing unit, for when the pressing dynamics are in the first pressure section, determining to described virtual Object external force to be applied is the first external force;
Second external force computing unit, for when the pressing dynamics are in the second pressure section, determining to described virtual Object external force to be applied is the second external force;Second external force is greater than first external force;
Third external force computing unit, for when the pressing dynamics are in the third pressure range, determining to described virtual Object external force to be applied is third external force;The third external force is greater than second external force.
9. virtual objects motion control device according to claim 8, which is characterized in that the second external force determining module Include:
4th external force computing unit, for according to formula FT=FT-1+FxK determines the external force to be applied to the virtual objects;
Wherein, FTThe external force to be applied determined in detection cycle, F are operated for current pressT-1For the inspection of previous pressing operation The external force to be applied determined in the period is surveyed, k is constant;
In current press operation detection cycle, when the pressing dynamics are in the first pressure section, FxOutside described first Power;When the pressing dynamics are in the second pressure section, FxFor second external force;The pressing dynamics are in described the When three pressure ranges, FxFor the third external force.
10. virtual objects motion control device according to claim 8, which is characterized in that second external force determines mould Block includes:
5th external force computing unit, for according to formula F1=F0+F0Tk determines to be applied to the virtual objects outer Power;
Wherein, F1For the determining external force to be applied, k is constant, and t is the pressing behaviour after the preset time threshold Make lasting duration;
In the preset time threshold, when the pressing dynamics are in the first pressure section, F0For first external force; When the pressing dynamics are in the second pressure section, F0For second external force;The pressing dynamics are in the third When pressure range, F0For the third external force.
11. virtual objects motion control device according to claim 9 or 10, which is characterized in that in the operation interface It further include storing power display area, the presentation module includes:
Display control unit is identified, shows different marks for controlling the storage power display area, to indicate currently determination The external force to be applied to the virtual objects.
12. virtual objects motion control device according to claim 9 or 10, which is characterized in that the virtual objects fortune Dynamic control device further include:
External force control module presets outer force threshold for judging whether the external force to be applied currently determined reaches one, and When the external force to be applied that judgement currently determines reaches the default outer force threshold, it is not further added by the virtual objects External force to be applied.
CN201610044352.6A 2016-01-22 2016-01-22 Virtual objects motion control method and device Active CN105739855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610044352.6A CN105739855B (en) 2016-01-22 2016-01-22 Virtual objects motion control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610044352.6A CN105739855B (en) 2016-01-22 2016-01-22 Virtual objects motion control method and device

Publications (2)

Publication Number Publication Date
CN105739855A CN105739855A (en) 2016-07-06
CN105739855B true CN105739855B (en) 2018-12-28

Family

ID=56246497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610044352.6A Active CN105739855B (en) 2016-01-22 2016-01-22 Virtual objects motion control method and device

Country Status (1)

Country Link
CN (1) CN105739855B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843676B (en) * 2016-12-26 2019-12-31 上海莉莉丝网络科技有限公司 Touch control method and touch control device for touch terminal
CN106861186B (en) * 2017-01-24 2019-01-22 腾讯科技(深圳)有限公司 Object control method and apparatus in game application
JP7149698B2 (en) * 2017-10-31 2022-10-07 株式会社シマノ Motor control device for electric reel
CN108771859B (en) * 2018-06-22 2020-06-30 腾讯科技(深圳)有限公司 Virtual scene display method and device, electronic device and storage medium
CN109758760B (en) 2018-12-06 2020-02-07 网易(杭州)网络有限公司 Shooting control method and device in football game, computer equipment and storage medium
CN111249719B (en) * 2020-01-20 2021-09-24 腾讯科技(深圳)有限公司 Track prompting method and device, storage medium and electronic device
CN113101640B (en) * 2021-04-20 2024-05-31 网易(杭州)网络有限公司 Game interaction method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853100A (en) * 2010-02-02 2010-10-06 杨开艳 Method of using touch module as game controller
US20110304581A1 (en) * 2010-06-14 2011-12-15 Samsung Electro-Mechanics Co., Ltd. Haptic feedback device and method for controlling the same
CN104267854A (en) * 2014-10-16 2015-01-07 孙萍 Touch screen terminal control method and device
CN104917890A (en) * 2015-05-29 2015-09-16 努比亚技术有限公司 Mobile terminal and volume adjusting method
US20150317030A1 (en) * 2009-08-18 2015-11-05 Canon Kabushiki Kaisha Display control apparatus and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150317030A1 (en) * 2009-08-18 2015-11-05 Canon Kabushiki Kaisha Display control apparatus and control method thereof
CN101853100A (en) * 2010-02-02 2010-10-06 杨开艳 Method of using touch module as game controller
US20110304581A1 (en) * 2010-06-14 2011-12-15 Samsung Electro-Mechanics Co., Ltd. Haptic feedback device and method for controlling the same
CN104267854A (en) * 2014-10-16 2015-01-07 孙萍 Touch screen terminal control method and device
CN104917890A (en) * 2015-05-29 2015-09-16 努比亚技术有限公司 Mobile terminal and volume adjusting method

Also Published As

Publication number Publication date
CN105739855A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN105739855B (en) Virtual objects motion control method and device
CN105641927B (en) Virtual objects rotating direction control method and device
CN105582670B (en) Aimed fire control method and device
CN104436657B (en) Game control method, device and electronic equipment
CN103869960B (en) Tactile feedback system and its method that tactile feedback is provided
CN105597315B (en) Virtual objects throw control method and device
CN105630350B (en) Virtual role control method and device
US10300392B2 (en) Virtual golf simulation apparatus and method for supporting generation of virtual green
CN109491586B (en) Virtual object control method and device, electronic equipment and storage medium
CN105373336B (en) Control method and device are presented in information panel
TW201604719A (en) Method and apparatus of controlling a smart device
Pirker et al. Gesture-based interactions in video games with the leap motion controller
US10122978B2 (en) Harmonizing a projected user interface
US20190227645A1 (en) Operation and control apparatus and control method
CN107913516A (en) Information processing method, device, electronic equipment and storage medium
CN109663346A (en) Construction control method and device in a kind of game
CN112764711A (en) Music interaction method, device, equipment and storage medium
KR20140062679A (en) Method of providing game replay, game replay server performing the same and storage media storing the same
CN106484235B (en) A kind of self-defined method and apparatus that game operation interface is set
CN106933397B (en) Virtual object control method and device
JP6535376B2 (en) Program, processing method, and information terminal device
KR20190095661A (en) Method and apparatus for controlling game using game-controllers
US20190336852A1 (en) Device with pressure-sensitive display and method of using such device
Lee et al. Attention meter: a vision-based input toolkit for interaction designers
CN105487764B (en) A kind of man-machine interaction method and device based on shortcut menu

Legal Events

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