CN105912162B - Control the method, apparatus and touch control device of virtual objects - Google Patents
Control the method, apparatus and touch control device of virtual objects Download PDFInfo
- Publication number
- CN105912162B CN105912162B CN201610218116.1A CN201610218116A CN105912162B CN 105912162 B CN105912162 B CN 105912162B CN 201610218116 A CN201610218116 A CN 201610218116A CN 105912162 B CN105912162 B CN 105912162B
- Authority
- CN
- China
- Prior art keywords
- touch
- virtual
- virtual objects
- control
- control component
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
Abstract
Present disclose provides a kind of method, apparatus and touch control device for controlling virtual objects, this method includes:An operation interface is shown on the touch control device, is included at least a virtual touch-control component in the operation interface, for corresponding with a virtual objects, and is controlled the movement of the virtual objects;The touch information that user operates the virtual touch-control component and generates is detected, the touch information includes pressing position and pressing dynamics;It is turned to accordingly according to the pressing position and the pressing dynamics control virtual objects and acceleration and deceleration operates.The disclosure is by the way that acceleration and deceleration operation to be integrated directly on the virtual touch-control component of manipulation virtual objects moving direction, only to can be achieved with the operation that control virtual objects complete steering, acceleration and deceleration by operating a virtual touch-control component, it operates intuitive, quick and convenient, it does not need additionally to be arranged and accelerates button and retard button, it is not take up the space of screen, operation interface is more salubrious succinct.
Description
Technical field
This disclosure relates to network technique field more particularly to a kind of method, apparatus and touch control device for controlling virtual objects.
Background technique
In the design of traditional game station (such as arcade, household host and portable palm machine), for carrier in game
The virtual objects such as (such as the vehicles such as automobile, tank, motor, helicopter) or personage manipulate, and player is existed using finger
The movement of rocking bar region up and down, corresponding virtual objects then go to carry out the adjustment on direction according to finger manipulation direction, directly
Connect the movement for influencing virtual objects in game.
The manipulation to virtual objects, such as Fig. 1 are generally realized in existing game in the form of rocking bar is in conjunction with button
It is shown, show that rocking bar 01, player's finger, by movement up and down, are completed to carrier on rocking bar in the side of interface
The manipulation of moving direction, and acceleration and brake (even virtual objects stop since switching to high speed traveling) operation are then with button
Form is independently shown, usual to carry out both hands operation for convenience of player, and button is shown in the other side, and wherein button 02 adds for controlling
Speed, button 03 is for controlling brake.Using form of the rocking bar in conjunction with button, the additionally setting control other than needing in rocking bar
Accelerate and two buttons of brake, it is also necessary to player after hand always manipulates rocking bar, in addition hand click simultaneously acceleration and
Brake needs player's both hands to operate.Increasing by two buttons simultaneously also will affect interface layout, and it is empty to occupy more interfaces
Between.In addition, braked there are also rocking bar 01 is operated using slip gesture in existing game or accelerate to operate, as shown in Fig. 2, with
For operating to the automobile in a traveling, player can be accelerated directly on automobile by sliding up realization, in fact to downslide
Now slow down or brakes.It is realized using slip gesture and accelerates or brake to will lead to complicated for operationization, player is needed to remember different hands
The case where gesture is operated, and it is easy to appear maloperations during slip gesture operates rocking bar.
As it can be seen that the mode that the existing movement to virtual objects in game is controlled, which has inconvenient player, carries out one hand
The problem of operating or easily causing maloperation, therefore, it is necessary to the method, apparatus and touch control device of a kind of new control virtual objects.
Above- mentioned information are only used for reinforcing the understanding to the background of the disclosure, therefore it disclosed in the background technology part
It may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method, apparatus and touching for controlling virtual objects
Equipment is controlled, it is singlehanded to there is inconvenient player in a manner of solving in the prior art to control the movement of virtual objects in game
The technical issues of operating or easily causing maloperation.
According to the first aspect of the embodiments of the present disclosure, a kind of method controlling virtual objects is provided, is applied to that pressure can be achieved
The touch control device of power sensing, including:
An operation interface is shown on the touch control device, includes at least a virtual touch control part in the operation interface
Part for corresponding with a virtual objects, and controls the movement of the virtual objects;
The touch information that user operates the virtual touch-control component and generates is detected, the touch information includes to press
Press position and pressing dynamics;
The virtual objects are controlled according to the pressing position and the pressing dynamics to be turned to and added and subtracted accordingly
Speed operation.
According to another embodiment of the disclosure, the virtual touch-control component includes:
Control unit and operating space;Wherein, the control unit is located at the center of the operating space in the initial state;When
When user carries out touch control operation, the control unit moves in the operating space.
According to another embodiment of the disclosure, the method also includes:
Detect the first contact;
First contact is judged whether in the regional scope where the control unit original state, if so, continuing
The second contact is detected, if it is not, then terminating;
Judge second contact whether in the regional scope where the control unit original state, if so, terminate,
If it is not, then passing through the pressing position and the pressing dynamics control virtual objects in response to the virtual touch-control component
Turn to and acceleration and deceleration operate.
According to another embodiment of the disclosure, the method also includes:
Whether judge the pressing dynamics less than a preset threshold, if the pressing dynamics are less than the preset threshold,
Then the virtual touch-control component works in the first mode of operation, passes through the pressing position in response to the virtual touch-control component
It controls the virtual objects and carries out steering operation;
If the pressing dynamics are more than or equal to the preset threshold, the virtual touch-control component is in the second mode of operation
Work controls the virtual objects by the pressing position in response to the virtual touch-control component and is turned to and added and subtracted
Speed operation, while also by controlling the angle that the virtual objects turn in response to the pressing dynamics of the virtual touch-control component
The acceleration of speed and acceleration or deceleration.
According to another embodiment of the disclosure, the step of generating the touch information, includes:
The pressing position is obtained in the position of the operating space by detecting second contact, by detecting described the
The two contacts size that exerts a force in the operating space obtains the pressing dynamics.
According to another embodiment of the disclosure, the operating space includes accelerating region and deceleration area, and the accelerating region is institute
State region in the same direction with the direction of advance of the virtual objects in operating space, the deceleration area be in the operating space with the void
The reversed region of the direction of advance of quasi- object.
According to another embodiment of the disclosure, the method also includes:
The direction of advance of virtual objects described in real-time detection.
According to another embodiment of the disclosure, when the virtual touch-control component is worked with the second operator scheme,
If the pressing position, in the range of the accelerating region, virtual objects described in the virtual touch-control component controls are added
Speed is mobile;If the pressing position is in the range of the deceleration area, virtual right described in the virtual touch-control component controls
As carrying out deceleration movement.
According to another embodiment of the disclosure, described the step of controlling the virtual objects progress acceleration and deceleration operation, is wrapped
It includes:
The virtual objects, which are calculated, according to the pressing dynamics carries out the mobile acceleration of acceleration or deceleration, calculation formula
For:
Wherein α is the acceleration, αmaxFor peak acceleration, f is the pressing dynamics, FmaxIt is applied on contact for user
The pressing dynamics maximum value added.
According to another embodiment of the disclosure, described the step of controlling the virtual objects progress steering operation, includes:
The virtual objects, which are calculated, according to the pressing dynamics is turning to the steering angular velocity in moving process, calculation formula
For:
Wherein ω is the steering angular velocity, ωmaxFor steering locking angle speed, f is the pressing dynamics, FmaxFor user
The pressing dynamics maximum value applied on contact;
It controls the virtual objects according to the steering angular velocity to be turned to, until steering reaches steering angle θ '.
According to another embodiment of the disclosure, the calculating step of the steering angle θ ' includes:
Second contact and X-axis are obtained according to the line at second contact and the center of the virtual touch-control component
Angle theta;
It is converted to obtain the steering angle θ ' of the virtual objects in the scene according to the angle theta.
According to the second aspect of an embodiment of the present disclosure, a kind of device controlling virtual objects is also provided, is applied to can be achieved
The touch control device of pressure-sensing, including:
Display unit includes at least in the operation interface for showing an operation interface on the touch control device
One virtual touch-control component for corresponding with a virtual objects, and controls the movement of the virtual objects;
Detection unit, the touch information for operating and generating to the virtual touch-control component for detecting user are described
Touch information includes pressing position and pressing dynamics;And
Control unit carries out accordingly for controlling the virtual objects according to the pressing position and the pressing dynamics
It turns to and acceleration and deceleration operates.
According to another embodiment of the disclosure, the virtual touch-control component includes:
Control unit and operating space;Wherein, the control unit is located at the center of the operating space in the initial state;When
When user carries out touch control operation, the control unit moves in the operating space.
According to another embodiment of the disclosure, described device further includes contact recognition unit, for according to detected
Contact provides corresponding response, which includes:
First detection module, for detecting the first contact;
First judgment module, for judging first contact whether in the region model where the control unit original state
In enclosing, if so, the second detection module is jumped to, if it is not, then terminating;
Second detection module, for detecting the second contact;
Second judgment module, for judging second contact whether in the region model where the control unit original state
In enclosing, if so, terminate, if it is not, then passing through the pressing position in response to the virtual touch-control component and the pressing force
Degree controls the virtual objects and carries out steering and acceleration and deceleration operation.
According to another embodiment of the disclosure, the contact recognition unit further includes mode deciding module, for judging
Whether the pressing dynamics are less than a preset threshold, if the pressing dynamics are less than the preset threshold, the virtual touching
Control component works in the first mode of operation, is controlled by the pressing position in response to the virtual touch-control component described virtual
Object carries out steering operation;If the pressing dynamics are more than or equal to the preset threshold, the virtual touch-control component is with the
The work of two operation modes controls the virtual objects by the pressing position in response to the virtual touch-control component and is turned
To and acceleration and deceleration operation, while also controlled by the pressing dynamics in response to the virtual touch-control component it is described virtual right
As the angular speed of steering and the acceleration of acceleration or deceleration.
According to another embodiment of the disclosure, the detection unit includes:
Third detection module, for obtaining the pressing position in the position of the operating space by detecting second contact
It sets;And
4th detection module, for by detect second contact exert a force in the operating space size obtain described in by
Surging.
According to another embodiment of the disclosure, the operating space includes accelerating region and deceleration area, and the accelerating region is institute
State region in the same direction with the direction of advance of the virtual objects in operating space, the deceleration area be in the operating space with the void
The reversed region of the direction of advance of quasi- object.
According to another embodiment of the disclosure, the detection unit further includes:
Angle detecting module, the direction of advance for virtual objects described in real-time detection.
According to another embodiment of the disclosure, when the virtual touch-control component is worked with the second operator scheme, institute
Stating control unit includes plus/minus speed module, accelerates mobile or movement of slowing down for controlling the virtual objects, when the plus/minus
Fast module is used for when the pressing position is in the range of the accelerating region, virtual right described in the virtual touch-control component controls
As carrying out acceleration movement, the plus/minus speed module is used for the void when the pressing position is in the range of the deceleration area
Virtual objects described in quasi- touch-control component controls carry out deceleration movement.
According to another embodiment of the disclosure, further includes accelerometer operator module in the plus/minus speed module, be used for
The virtual objects are calculated according to the pressing dynamics and carry out the mobile acceleration of acceleration or deceleration, and calculation formula is:
Wherein α is the acceleration, αmaxFor peak acceleration, f is the pressing dynamics, FmaxIt is applied on contact for user
The pressing dynamics maximum value added.
According to another embodiment of the disclosure, described control unit includes steering module, described virtual right for controlling
As turning to, the steering module includes:
Steering angular velocity computational submodule is moved through for calculating the virtual objects according to the pressing dynamics in steering
Steering angular velocity in journey, calculation formula are:
Wherein ω is the steering angular velocity, ωmaxFor steering locking angle speed, f is the pressing dynamics, FmaxFor user
The pressing dynamics maximum value applied on contact;
Course changing control submodule is turned to for controlling the virtual objects according to the steering angular velocity, until turning
Until reaching steering angle θ '.
According to the third aspect of an embodiment of the present disclosure, a kind of touch control device is also provided, is shown on the touch control device
One operation interface includes at least a virtual touch-control component in the operation interface, for corresponding with a virtual objects, and controls
The movement of the virtual objects, the touch control device include:
Processor;And
For storing the memory of the processor executable command;
Wherein, the processor is configured to:
The touch information that user operates the virtual touch-control component and generates is detected, the touch information includes to press
Press position and pressing dynamics;
The virtual objects are controlled according to the pressing position and the pressing dynamics to be turned to and added and subtracted accordingly
Speed operation.
As shown from the above technical solution, the beneficial effect of the disclosure is:
It does not need additionally to be arranged and accelerates button and retard button, it is possible to reduce the quantity of button on interface is not take up screen
Space, operation interface can be enabled more salubrious succinct.It is mobile that acceleration and deceleration operation is integrated directly into manipulation virtual objects simultaneously
On the virtual touch-control component in direction, so as to user only pass through operation one virtual touch-control component can be achieved with control virtual objects it is complete
At steering, the operation of acceleration and deceleration, enables operation more intuitive while also more quick and convenient, the manipulation body of player can be promoted
It tests.
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
Detailed description below considering in conjunction with the accompanying drawings to preferred embodiment of the present disclosure, the various targets of the disclosure,
Feature and advantage will become apparent.Attached drawing is only the exemplary diagram of the disclosure, is not necessarily drawn to scale.
In the accompanying drawings, same appended drawing reference always shows same or similar component.
Fig. 1 is to control automobile acceleration-deceleration traveling in related embodiment by the way of rocking bar combination button.
Fig. 2 is to control automobile acceleration-deceleration traveling in related embodiment by the way of slip gesture.
Fig. 3 is a kind of step flow chart of the method for the control virtual objects provided in the embodiment of the present disclosure one.
Fig. 4 is schematic diagram when the virtual touch-control component provided in the embodiment of the present disclosure one does not deflect.
Fig. 5 is schematic diagram when the virtual touch-control component provided in the embodiment of the present disclosure one has deflection.
Fig. 6 is the step flow chart of detection identification contact in the embodiment of the present disclosure one.
Fig. 7 is the schematic diagram not responded in the embodiment of the present disclosure one for contact.
Fig. 8 is the step flow chart of step S30 in the method provided in the embodiment of the present disclosure one.
Fig. 9 is the schematic diagram of the angle of the second contact X-axis in the embodiment of the present disclosure one.
Figure 10 is the schematic diagram of steering angle when accelerating in the embodiment of the present disclosure one.
Figure 11 is the schematic diagram of steering angle when slowing down in the embodiment of the present disclosure one.
Figure 12 is the schematic diagram that the accelerating region of virtual rocking bar in the embodiment of the present disclosure one is accelerated.
Figure 13 is the schematic diagram that the deceleration area of virtual rocking bar in the embodiment of the present disclosure one slows down.
Figure 14 is the schematic diagram of the device of the control virtual objects provided in the embodiment of the present disclosure two.
Figure 15 is the schematic diagram of contact recognition unit in the embodiment of the present disclosure two.
Figure 16 is the schematic diagram of detection unit in the embodiment of the present disclosure two.
Figure 17 is the schematic diagram of control unit in the embodiment of the present disclosure two.
Figure 18 is the composition block diagram of the touch control device provided in the embodiment of the present disclosure three.
Specific embodiment
The exemplary embodiments for embodying disclosure features and advantages will describe in detail in the following description.It should be understood that
The disclosure can have various variations in different embodiments, all not depart from the scope of the present disclosure, and explanation therein
And attached drawing inherently is illustrated as being used, rather than to limit the disclosure.
Feature, structure or characteristic described in the disclosure can be incorporated in one or more implementations in any suitable manner
In mode.In the following description, many details are provided to provide and fully understand to embodiment of the present disclosure.So
And it will be appreciated by persons skilled in the art that can be with technical solution of the disclosure without one in the specific detail
Or more, or can be using other methods, component, material etc..In other cases, it is not shown in detail or describes known knot
Structure, material or operation are to avoid fuzzy all aspects of this disclosure.
Some embodiments of the present disclosure are illustratively provided below with reference to accompanying drawings.It should be appreciated that the embodiment of reference is simultaneously
It does not limit the scope of the present disclosure.That is, any example enumerated in this specification is all not limiting, but it is only
Illustratively.
The steering of virtual objects is controlled in view of the mode that the rocking bar provided in the prior art is combined with button, slows down and subtracts
The inconvenient of speed carries out one-handed performance in player, or control using being subject to slip gesture based on rocking bar by the way of it is virtually right
The operation of steering, deceleration and the deceleration of elephant be easy to appear maloperation etc. problems, the disclosure provide it is a kind of only show rocking bar,
The mode for additionally showing acceleration and deceleration buttons is not needed, so that it may control the steering of virtual objects based on touch information, subtract
Speed and the operation slowed down, simplifying interface design and operation, are described in detail in the examples below.
Embodiment one
A kind of method for controlling virtual objects is provided in the present embodiment, which shows according to base provided in this embodiment
In the step flow chart of the method for touch information control virtual objects, include the following steps:
Step S10:An operation interface is shown on touch control device, includes at least a virtual touch control part in operation interface
Part.
Step S20:The touch information that user operates virtual touch-control component and generates is detected, touch information includes to press
Press position and pressing dynamics.
Step S30:According to pressing position and pressing dynamics control virtual objects are turned to accordingly and acceleration and deceleration behaviour
Make.
As shown in figure 4, the operation interface of a game is shown on the touch screen of touch control device, in the operation interface
Including a virtual touch-control component and a virtual objects, the virtual touch-control component is corresponding with a virtual objects, and controls virtual
The movement of object.In the present embodiment, virtual touch-control component can be virtual rocking bar, and for example, Floating virtual rocking bar is empty
Quasi- object can be an automobile, to control the movement of automobile by controlling virtual rocking bar.
In the present embodiment, virtual touch-control component includes a control unit and an operating space, as shown in figure 4, control unit A exists
It is located at the center of operating space B under original state, the region of the present position in the initial state the control unit A can be denoted as
Center, when user carries out touch control operation, control unit A is for tracking contact of the user on touch control device, in operating space B
It is mobile.For example, control unit A and operating space B can be expressed as an inner circle and outer circle, the control unit A is that virtual rocking bar (is being schemed
Indicated in 4 with roundlet), the operating space B is the chassis (being indicated in Fig. 4 with great circle) of virtual rocking bar, the virtual rocking bar
The center on chassis is coordinate origin, and the radius of inner circle is r1, the radius of outer circle is r2, and r1≤r2.Inner circle (i.e. virtual rocking bar) is used
It is moved in tracking contact, that is, inner circle with the movement of user's finger.
In addition, as shown in figure 4, operating space B includes accelerating region B1 and deceleration area B2 two parts, specifically, accelerating region B1 is
The region in the same direction with the direction of advance of virtual objects in operating space, deceleration area B2 are the direction of advance in operating space with virtual objects
Reversed region.As shown in figure 4, accelerating region B1 and deceleration area B2 can be two parts of area equation, there are one between twoth area
Virtual line of demarcation (as shown in phantom in Figure 4) is only the division for schematically showing accelerating region and deceleration area in figure, actually aobvious
There is no this virtual lines of demarcation in showing.The direction in the line of demarcation is X-axis, and the moving direction of virtual objects is Y-axis, X-axis and Y
The direction of axis is mutually perpendicular to.It should also be noted that, Fig. 4 show virtual objects probably be not always in one direction before
Into or it is mobile, and be direction of advance may be continually changing, therefore also need the direction of advance of real-time detection virtual objects,
So that line of demarcation virtual between accelerating region and deceleration area is determined according to the direction of advance of update in real time.
The direction of advance of virtual objects changes, that is, Y direction changes, correspondingly, the direction of X-axis also with
Change, but remain the vertical relation of X-axis and Y-axis.X-direction variation leads to accelerating region and acceleration in operating space
The line of demarcation in area generates corresponding variation, and the schematic diagram of accelerating region B1 ' and accelerating region B2 ' are as shown in Figure 5 after variation.Wherein Fig. 4
With the virtual touch-control component of the size and actual displayed of virtual touch-control component and virtual objects shown in Fig. 5 and virtual objects
Ratio is not consistent, only for the virtual touch-control component of protrusion and more clearly shows accelerating region and accelerating region and makes and putting
Greatly, to show explanation.
By taking virtual touch-control component shown in Fig. 4 as an example, when it is under original state, the center weight of inner circle and outer circle
It is folded.Later, when user has contact on the touchscreen or generates new contact because mobile, workflow is as shown in fig. 6, as follows:
Step S21:Detect the first contact p1, when the finger of user presses screen, with virtual rocking bar chassis (i.e. outer circle)
Center be origin, the first contact p1Coordinate be p1(x, y) (not shown), pressing dynamics f.
Step S22:Judge the first contact p1Whether in center (i.e. the region of control unit in the initial state)
In range, if the first contact p1In the range of the center, then continue step S23, if the first contact p1Not described
In the range of center, then terminate;Namely if the first contact p1It falls in except the range of the center, is not responding to user
Click;If the first contact p1It falls within the scope of the center, but specific how to respond also needs further to judge, i.e.,
Continue to test new contact.
Step S23:Detect the second contact p2。
Step S24:Judge the second contact p2Whether in the range of center, if the second contact p2In the center
In the range of, then terminate, if the second contact p2Not in the range of the center, then continue the operation of next step.
If although new contact p has position movement, (the namely described control unit is no longer overlapped with center, but is had partially
Move), but the control unit is not made to be fully removed the range of center, then the contact is not reacted.Do not have for contact
There is the schematic diagram of response as shown in fig. 7, although the response of user's clicking operation can be provided, that is, controlling then in display
Portion can track the finger contact p of user3、p4、p5It is moved, but virtual touch-control component is still within non-operating state (in figure
Follow the finger contact p of user3、p4、p5The position of mobile control unit A is shown in dotted line), that is, will not be to virtual objects
Movement have an impact, and in finger contact p3、p4、p5After leaving touch screen, the control unit still can return to original
Position returns to the center under original state, that is, the control unit A can turn again to center.
In actual use, not accurately maloperation is clicked in order to exclude touch screen, even if the touching of user on the touchscreen
Point moves, and inner circle is tracked contact and also moved, as long as but in the range of control unit do not remove center, not doing
Respond out, that is, when control unit is located exactly at center or control unit occur in center offset but not completely
When removing center, response is not provided, and only when control unit and center occur deviating and be fully removed center
Qu Shi can just provide response to continue the judgement of next step.
Step S25:Judge pressing dynamics f whether less than a preset threshold f1If pressing dynamics f is less than preset threshold f1,
Then virtual touch-control component works in the first mode of operation, i.e., virtual right by the pressing position control in response to virtual touch-control component
As carrying out steering operation;If pressing dynamics f is more than or equal to preset threshold f1, then virtual touch-control component work in the second mode of operation
Make, i.e., virtual objects is controlled by the pressing position in response to virtual touch-control component and carry out steering and acceleration and deceleration operation, simultaneously
Also the angular speed of virtual objects steering and adding for acceleration or deceleration are controlled by the pressing dynamics in response to virtual touch-control component
Speed.That is, being less than preset threshold f in pressing dynamics f1When, virtual touch-control component only does course changing control and is used, and does not add
Deceleration is used, and is more than or equal to preset threshold f in pressing dynamics f1When, virtual touch-control component had not only done course changing control and had been used, but also added
Control of slowing down is used, and the multi-operation mode of virtual touch-control component is realized, with more various operational requirements.
No matter virtual touch-control component is with the first operating mode or the second mode of operation, generates touch-control in detection contact
It is during information:By detecting the second contact p2Pressing position is obtained in the position of operating space, passes through the second touching of detection
Point p2The size that exerts a force in operating space obtains pressing dynamics f.If virtual touch-control component is with the first mode of operation, only
The steering of virtual objects is controlled according to the pressing position, while steering angular velocity is calculated according to pressing dynamics f.If virtual
When touch-control component is with the second mode of operation, then not only according to the steering of pressing position control virtual objects, simultaneously
Calculate steering angular velocity and acceleration according to pressing dynamics f, be also according to pressing position judgement accelerate or slow down, specifically,
If pressing position, in the range of accelerating region, virtual touch-control component controls virtual objects carry out acceleration movement;If pressing
In the range of deceleration area, then virtual touch-control component controls virtual objects carry out deceleration movement, the acceleration of acceleration or deceleration for position
Degree is calculated according to pressing dynamics f.
In the present embodiment, when virtual touch-control component in the first mode of operation or second operator scheme work when, step
The step process of S30 is as shown in figure 8, the step of controlling virtual objects progress steering operation in step S30 includes:
Step S31:Steering angular velocity of the virtual objects in steering procedure is calculated according to pressing dynamics, calculation formula is:
Wherein ω is steering angular velocity, ωmaxFor steering locking angle speed, f is pressing dynamics, FmaxIt is user on contact
The pressing dynamics maximum value of application.If touch information can pass through 3D on mobile phone for being in the above way applied in hand trip
The API (Application Programming Interface, application programming interfaces) of Touch is obtained, to learn use
The pressing dynamics f that family finger applies on a certain contact on handset touch panel, and the range of pressing dynamics f is 0~Fmax,
In for judging the preset threshold f of virtual touch-control component operating mode1It can according to need in 0~FmaxIt is selected in range.Wherein
Steering locking angle speed omegamaxFor a preset value, the virtual objects that can be controlled according to touch-control component virtual in specific game
And set, such as have more automobiles in the scene of certain a racing car type game, generally for different types of vehicle course changing control
Sensitivity is also not quite identical, it is assumed that requires the steering sensitivity of automobile A relatively high in game, corresponding ωmaxWith regard to bigger,
Automobile A is very flexible when turning to;And the requirement of automobile B steering sensitivity is less high, then corresponding ωmaxWith regard to smaller,
Automobile B is just slightly heavier when turning to, flexible not as good as automobile A.
Step S32:It controls virtual objects according to steering angular velocity to be turned to, until steering reaches steering angle θ '.
In the present embodiment, before step S32, further include the steps that acquisition steering angle is as follows:
Firstly, according to the second contact p2With the line in the center of circle (center of the namely described virtual touch-control component) of center
Obtain the second contact p2With the angle theta of X-axis, as shown in Figure 9;Later, convert to obtain virtual objects in the scene according to angle theta
Steering angle θ ', as shown in Figure 10.Wherein when angle theta is less than 90 degree, steering angle θ '=90- θ turns when angle theta is greater than 90 degree
To angle θ '=θ -90.Wherein Y-axis positive axis is consistent with the moving direction of virtual objects, as shown in Figure 9 and Figure 10, if the second touching
Point p2With the region of the line in the center of circle of center and the angle theta of X-axis more than X-axis, i.e. the second contact p2In the positive axis of Y-axis,
Second contact p at this time2Positioned at accelerating region, 0 °<θ<180 °, correspondingly, -90 °<θ′<90°.Opposite, as shown in figure 11, if
Second contact p2With the line in the center of circle of center and the angle theta of X-axis in X-axis region below, i.e. the second contact p2In Y-axis
Negative semiaxis, at this time the second contact p2Positioned at deceleration area, 180 °<θ<360 °, correspondingly, 90 °<θ′<270°.
It should be noted that steering angle in the present embodiment can also other than above-mentioned steps by the way of be calculated,
Such as angle theta be the center of circle of new position and center line and X-axis positive direction angle when, the calculation formula of steering angle θ ' with
Change.
Continue as shown in figure 8, when virtual touch-control component works in the second mode of operation, in addition to including control in step S30
Virtual objects processed carry out the step of steering operation, further include the steps that controlling virtual objects carries out acceleration and deceleration operation, specifically includes
Following steps:
Step S33:The mobile acceleration of virtual objects acceleration or deceleration is calculated according to pressing dynamics, calculation formula is:
Wherein α is acceleration, αmaxFor peak acceleration, f is pressing dynamics, FmaxThe pressing applied on contact for user
Dynamics maximum value.
In this way, the different instructions for the dynamics value size that can be applied according to user go out in accelerator and gently step on the gas (i.e. plus
Speed is smaller) and the difference of (i.e. acceleration is larger) of stepping on the gas again, gently touch on the brake (i.e. acceleration is smaller) can also be distinguished
And the difference of (i.e. acceleration is larger) of touching on the brake again.Therefore user only needs to operate in operation rocking bar, and combines weight
By or flicking mode of operation come realize with different dynamics step on the gas and brake process brought by impression, significant increase user
It includes accelerating region and deceleration area that the virtual rocking bar, which is shown respectively, in manipulation experience in gaming, Figure 12 and Figure 13, by corresponding
Touch control operation realize game in virtual objects acceleration or deceleration schematic diagram.
In conclusion the method provided through this embodiment, does not need that acceleration is additionally arranged except virtual rocking bar and subtracts
The button of speed, it is possible to reduce the quantity of button on interface is not take up the space of screen, so that the design of operation interface is clear
Succinctly.It is integrated by the operation that will accelerate and slow down on the rocking bar of manipulation virtual objects moving direction, utilizes a virtual touching
Control component can be achieved with control virtual objects and complete the operation for turning to, accelerating and slowing down, and enable operation more intuitive, while also more
To be quick and convenient, the manipulation experience of player can be promoted.
Embodiment two
A kind of device for controlling virtual objects is present embodiments provided, applied to the touch control device of achievable pressure-sensing,
The operation for turning to, accelerating and slowing down is completed only just to can control virtual objects by virtual rocking bar in operation interface.
Figure 14 shows the schematic diagram of the device of control virtual objects provided in this embodiment, which includes that display is single
Member 110, detection unit 120, control unit 130 and contact recognition unit 140.Display unit 110 is used to show on touch control device
It is shown with an operation interface, a virtual touch-control component is included at least in operation interface, for corresponding with a virtual objects, and controls
The movement of virtual objects.Detection unit 120 is used to detect the touch information that user operates virtual touch-control component and generates,
Touch information includes pressing position and pressing dynamics.Control unit 130 is used to be controlled according to pressing position and pressing dynamics virtual
Object is turned to accordingly and acceleration and deceleration operation.Contact recognition unit 140 according to contact detected for providing accordingly
Response.
As shown in figure 4, the operation interface of a game is shown on the touch screen of touch control device, in the operation interface
Including a virtual touch-control component and a virtual objects, the virtual touch-control component is corresponding with a virtual objects, and controls virtual
The movement of object.In the present embodiment, virtual touch-control component can be virtual rocking bar, and for example, Floating virtual rocking bar is empty
Quasi- object can be an automobile, to control the movement of automobile by controlling virtual rocking bar.
In the present embodiment, virtual touch-control component includes a control unit and an operating space, as shown in figure 4, control unit A exists
It is located at the center of operating space B under original state, and the region of the present position in the initial state the control unit A is denoted as
Center.When user carries out touch control operation, control unit A is moved for tracking contact of the user on touch control device in operating space B
It is dynamic.For example, control unit A and operating space B can be expressed as an inner circle and outer circle, the control unit A is virtual rocking bar (in Fig. 4
It is middle to be indicated with roundlet), the operating space B is the chassis (being indicated in Fig. 4 with great circle) of virtual rocking bar, the chassis of virtual rocking bar
Center is coordinate origin, and the radius of inner circle is r1, the radius of outer circle is r2, and r1≤r2.Inner circle (i.e. virtual rocking bar) is for tracking
Contact, that is, inner circle are moved with the movement of user's finger.
In addition, as shown in figure 4, operating space B includes accelerating region B1 and deceleration area B2 two parts, specifically, accelerating region B1 is
The region in the same direction with the direction of advance of virtual objects in operating space, deceleration area B2 are the direction of advance in operating space with virtual objects
Reversed region.When virtual touch-control is under original state, inner circle is Chong Die with the center A of outer circle, inner circle region
It is exactly the center of outer circle.
In the present embodiment, virtual touch-control component in the operating condition, is needed according to the variation for detecting and identifying contact
Situation and carry out corresponding operation, therefore also need to include a contact recognition unit in the present apparatus.The contact recognition unit 140
Schematic diagram is as shown in figure 15, including:First detection module 141, first judgment module 142, the second detection module 143, second are sentenced
Disconnected module 144 and mode deciding module 145.
First detection module 141 is for detecting the first contact p1, when the finger of user presses screen, it is converted into virtually shaking
The center on bar chassis (i.e. outer circle) is origin, the first contact p1Coordinate be p1(x, y) (not shown), pressing dynamics are
f.First judgment module 142 is for judging the first contact p1Whether in center (the i.e. location of control unit in the initial state
Domain) in the range of, if the first contact p1In the range of center, then the second detection module 143 is jumped to, if the first touching
Point p1Not in the range of center, then terminate.Second detection module 143 is for detecting the second contact p2.Second judgment module
144 for judging the second contact whether in the range of center, if the second contact terminates in the range of center,
If the second contact not in the range of center, passes through pressing position in response to virtual touch-control component and pressing dynamics control
Virtual objects processed turn to and acceleration and deceleration operate.Mode deciding module 145 is for judging whether pressing dynamics are pre- less than one
If threshold value, if pressing dynamics are less than preset threshold, virtual touch-control component works in the first mode of operation, by response to void
The pressing position control virtual objects of quasi- touch-control component carry out steering operation;If pressing dynamics are more than or equal to preset threshold,
Virtual touch-control component works in the second mode of operation, by the pressing position in response to virtual touch-control component control virtual objects into
Row turns to and acceleration and deceleration operation, while also controlling what virtual objects turned to by the pressing dynamics in response to virtual touch-control component
The acceleration of angular speed and acceleration or deceleration.
In the present embodiment, no matter virtual touch-control component is with the first operating mode or the second mode of operation, equal root
The touch information of the pressing position and pressing dynamics that obtain according to detection unit 120 carries out corresponding operation control, and detection is single
The composition schematic diagram of member is as shown in figure 16, which includes:Third detection module 121,122 and of the 4th detection module
Angle detecting module 123, third detection module 121 are used for through the second contact p of detection2Pressing position is obtained in the position of operating space
It sets, the 4th detection module 122 is used for through the second contact p of detection2The size that exerts a force in operating space obtains pressing dynamics f.If
When virtual touch-control component is with the first mode of operation, then according only to the steering of pressing position control virtual objects, together
When steering angle and steering angular velocity calculated according to pressing dynamics f.If virtual touch-control component is with the second mode of operation,
Steering angle and steering angle are calculated not only according to the steering of pressing position control virtual objects, while according to pressing dynamics f
Speed, also according to pressing position judgement be accelerate or slow down, specifically, if pressing position in the range of accelerating region,
Virtual touch-control component controls virtual objects carry out acceleration movement;If pressing position is in the range of deceleration area, virtual touch-control
Component controls virtual objects carry out deceleration movement, and the acceleration of acceleration or deceleration is calculated according to pressing dynamics f.No matter
Virtual touch-control component is required with which kind of mode of operation according to virtual objects described in 123 real-time detection of angle detecting module
Direction of advance, to determine line of demarcation virtual between accelerating region and deceleration area according to the direction of advance of update in real time, also
It is the operating space that acceleration and deceleration can be rapidly changed according to the direction of advance of virtual objects.
According to the touch information that above-mentioned detection unit 120 obtains, control unit 130 carries out corresponding operation control, specifically
, the schematic diagram of control unit 130 is as shown in figure 17, which includes plus/minus speed module 131 and steering module
132。
When virtual touch-control component works in the first mode of operation, due to only doing steering operation, acceleration and deceleration operation is not done, therefore
It only controls virtual objects by steering module 132 to turn to, as shown in figure 16, which includes steering angular velocity
Computational submodule 1321 and course changing control submodule 1322, steering angular velocity computational submodule 1321 is based on according to pressing dynamics
Steering angular velocity of the virtual objects in steering moving process is calculated, calculation formula is:
Wherein ω is steering angular velocity, ωmaxFor steering locking angle speed, f is pressing dynamics, FmaxIt is user on contact
The pressing dynamics maximum value of application.Wherein steering locking angle speed omegamaxIt, can be according to empty in specific game for a preset value
Intend the virtual objects that touch-control component is controlled and set, such as there are more automobiles in the scene of certain a racing car type game, usually
It is also not quite identical for the sensitivity of different types of vehicle course changing control, it is assumed that the steering sensitivity of automobile A is required in game
It is relatively high, corresponding ωmaxWith regard to bigger, automobile A is very flexible when turning to;And the requirement of automobile B steering sensitivity is less
Height, then corresponding ωmaxWith regard to smaller, automobile B is just slightly heavier when turning to, flexible not as good as automobile A.
Course changing control submodule 1322 is used to control virtual objects according to steering angular velocity and be turned to, and reaches until turning to
Until steering angle θ ', the mode for obtaining the steering angle be can refer to shown in embodiment one and Fig. 9-Figure 11, and details are not described herein again.
When virtual touch-control component works in the second mode of operation, diversion treatments are not only done, are being accelerated also according to pressing position
Area or deceleration area carry out corresponding acceleration and deceleration operation, therefore include plus/minus speed module 131 in the control unit 130, such as Figure 17
Shown, which includes feed speed control submodule 1311 and accelerometer operator module 1312, acceleration and deceleration
System module 1311 is used for when pressing position is in the range of accelerating region, and virtual touch-control component controls virtual objects are accelerated
It is mobile, it is also used to when pressing position is in the range of deceleration area, virtual touch-control component controls virtual objects carry out deceleration movement.
Accelerometer operator module 1312, which is used to calculate virtual objects according to pressing dynamics, carries out the mobile acceleration of acceleration or deceleration, meter
Calculating formula is:
Wherein α is acceleration, αmaxFor peak acceleration, f is pressing dynamics, FmaxThe pressing applied on contact for user
Dynamics maximum value.
In conclusion the device can be adapted for hand trip terminal, the difference for the dynamics value size that can apply according to user
The difference of (i.e. acceleration is larger) of gently stepping on the gas (i.e. acceleration is smaller) and step on the gas again is distinguished in accelerator, it can also be with
Distinguish the difference of (i.e. acceleration is larger) of gently touching on the brake (i.e. acceleration is smaller) and touch on the brake again.Therefore user was operating
Only need to operate rocking bar in journey, and in conjunction with again by or the mode of operation of flicking stepped on the gas and braked with different dynamics to realize
Impression brought by journey, the manipulation experience of significant increase user in gaming.It does not need additionally to be arranged and accelerates button and slow down to press
Button, it is possible to reduce the quantity of button on interface is not take up the space of screen, and operation interface can be enabled more salubrious succinct.Simultaneously
Acceleration and deceleration operation is integrated directly on the rocking bar on manipulation carrier direction, using a rocking bar as virtual touch-control component
It can be achieved with control virtual objects and complete the operation for turning to, accelerating and slowing down, enable operation more intuitive while also more quick
With it is convenient, can be promoted player manipulation experience.
Embodiment three
A kind of touch control device is provided in the present embodiment, as shown in figure 18, which has a touch screen 1010,
An operation interface is shown on touch screen 1010, includes at least a virtual touch-control component 1011 and virtual touch-control in operation interface
Corresponding to component and the virtual objects 1012 of control, virtual touch-control component 1011 control the movement of virtual objects 1012.The touch-control
Equipment can be smart machine, such as can be mobile phone, in addition to touch screen, the mobile terminal 1000 include processor 1020 and
Memory 1030 for storage processor device executable command.
Wherein, processor is configured as:The touch information that user operates virtual touch-control component and generates is detected, touching
Controlling information includes pressing position and pressing dynamics;It is turned to accordingly according to pressing position and pressing dynamics control virtual objects
And acceleration and deceleration operation.
In the exemplary embodiment, mobile terminal can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
Memory can be realized by any kind of volatibility or non-volatile memory device or their combination, such as quiet
State random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), the read-only storage of erasable programmable
Device (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or light
Disk.
Correspondingly, the present invention also provides a kind of non-transitorycomputer readable storage medium, the storage for example including instruction
Device, above-metioned instruction can be executed by the processor of device to complete the above method.For example, the computer-readable storage of non-transitory
Medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..It is deposited when described
When instruction in storage media is executed by the processor of terminal, enable the terminal to execute above-mentioned feedback method.
Mobile terminal can be operated based on the operating system for being stored in memory, such as Windows Server TM, Mac
OS XTM, Unix TM, Linux TM, Free BSDTM or similar.
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, mobile 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 (22)
1. a kind of method for controlling virtual objects, the touch control device applied to achievable pressure-sensing, which is characterized in that including:
An operation interface is shown on the touch control device, is included at least a virtual touch-control component in the operation interface, is used
In movement corresponding with a virtual objects, and controlling the virtual objects;
The touch information that user operates the virtual touch-control component and generates is detected, the touch information includes pressing position
It sets and pressing dynamics;
It is turned to accordingly according to the pressing position and the pressing dynamics control virtual objects and acceleration and deceleration is grasped
Make;
It wherein controls the virtual objects according to the pressing position and the pressing dynamics and turn to accordingly and include:
The pressing dynamics are judged whether less than a preset threshold, if the pressing dynamics are less than the preset threshold, institute
It states virtual touch-control component to work in the first mode of operation, passes through the pressing position control in response to the virtual touch-control component
The virtual objects carry out steering operation.
2. the method according to claim 1, wherein the virtual touch-control component includes:
Control unit and operating space;Wherein, the control unit is located at the center of the operating space in the initial state;Work as user
When carrying out touch control operation, the control unit moves in the operating space.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Detect the first contact;
First contact is judged whether in the regional scope where the control unit original state, if so, continuing to test
Second contact;If it is not, then terminating;
Second contact is judged whether in the regional scope where the control unit original state, if so, terminating;If
It is no, then by the pressing position in response to the virtual touch-control component and the pressing dynamics control the virtual objects into
Row turns to and acceleration and deceleration operation.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the pressing dynamics are more than or equal to the preset threshold, virtual touch-control component work in the second mode of operation
Make, the virtual objects are controlled by the pressing position in response to the virtual touch-control component and carry out steering and acceleration and deceleration
Operation, while also by controlling the angle speed that the virtual objects turn in response to the pressing dynamics of the virtual touch-control component
The acceleration of degree and acceleration or deceleration.
5. according to the method described in claim 3, it is characterized in that, the step of generating the touch information includes:
The pressing position is obtained in the position of the operating space by detecting second contact, by detecting second touching
Point force size in the operating space obtains the pressing dynamics.
6. according to the method described in claim 4, it is characterized in that, the operating space includes accelerating region and deceleration area, it is described plus
Fast area is region in the same direction with the direction of advance of the virtual objects in the operating space, and the deceleration area is in the operating space
The reversed region with the direction of advance of the virtual objects.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The direction of advance of virtual objects described in real-time detection.
8. according to the method described in claim 6, it is characterized in that, when the virtual touch-control component is with the second operator scheme
It is virtual right described in the virtual touch-control component controls if the pressing position is in the range of the accelerating region when work
As carrying out acceleration movement;If the pressing position is in the range of the deceleration area, the virtual touch-control component controls institute
It states virtual objects and carries out deceleration movement.
9. according to the method described in claim 8, it is characterized in that, the control virtual objects carry out acceleration and deceleration operation
Step includes:
The virtual objects are calculated according to the pressing dynamics and carry out the mobile acceleration of acceleration or deceleration, and calculation formula is:
Wherein α is the acceleration, αmaxFor peak acceleration, f is the pressing dynamics, FmaxApply on contact for user
Pressing dynamics maximum value.
10. according to the method described in claim 3, it is characterized in that, the control virtual objects carry out steering operation
Step includes:
Steering angular velocity of the virtual objects in steering moving process is calculated according to the pressing dynamics, calculation formula is:
Wherein ω is the steering angular velocity, ωmaxFor steering locking angle speed, f is the pressing dynamics, FmaxIt is being touched for user
The pressing dynamics maximum value applied on point;
It controls the virtual objects according to the steering angular velocity to be turned to, until steering reaches steering angle θ '.
11. according to the method described in claim 10, it is characterized in that, the calculating step of the steering angle θ ' includes:
The angle of second contact and X-axis is obtained according to the line of second contact and the center of the virtual touch-control component
θ;
It is converted to obtain the steering angle θ ' of the virtual objects in the scene according to the angle theta.
12. a kind of device for controlling virtual objects, the touch control device applied to achievable pressure-sensing, which is characterized in that including:
It is empty to include at least one for showing an operation interface on the touch control device, in the operation interface for display unit
Quasi- touch-control component, for corresponding with a virtual objects, and controls the movement of the virtual objects;
Detection unit, the touch information that the virtual touch-control component is operated and is generated for detecting user, the touch-control
Information includes pressing position and pressing dynamics;
Control unit is turned to accordingly for controlling the virtual objects according to the pressing position and the pressing dynamics
And acceleration and deceleration operation;And
Contact recognition unit, for providing corresponding response according to detection unit contact detected, wherein the contact
Recognition unit includes:
Mode deciding module, for judging the pressing dynamics whether less than a preset threshold, if the pressing dynamics are less than
The preset threshold, then the virtual touch-control component works in the first mode of operation, by response to the virtual touch-control component
The pressing position control the virtual objects and carry out steering operation.
13. device according to claim 12, which is characterized in that the virtual touch-control component includes:
Control unit and operating space;Wherein, the control unit is located at the center of the operating space in the initial state;Work as user
When carrying out touch control operation, the control unit moves in the operating space.
14. device according to claim 13, which is characterized in that the contact recognition unit further includes:
First detection module, for detecting the first contact;
First judgment module, for judging first contact whether in the regional scope where the control unit original state
It is interior, if so, the second detection module is jumped to, if it is not, then terminating;
Second detection module, for detecting the second contact;
Second judgment module, for judging second contact whether in the regional scope where the control unit original state
It is interior, if so, terminating, if it is not, then passing through the pressing position in response to the virtual touch-control component and the pressing dynamics
It controls the virtual objects and carries out steering and acceleration and deceleration operation.
15. device according to claim 14, which is characterized in that if the pressing dynamics are more than or equal to the default threshold
Value, then the virtual touch-control component works in the second mode of operation, passes through the pressing in response to the virtual touch-control component
Virtual objects described in position control turn to and acceleration and deceleration operate, while also by response to the virtual touch-control component
The pressing dynamics control the acceleration of the angular speed that the virtual objects turn to and acceleration or deceleration.
16. device according to claim 14, which is characterized in that the detection unit includes:
Third detection module, for obtaining the pressing position in the position of the operating space by detecting second contact;
And
4th detection module, for obtaining the pressing force by detecting second contact size that exerts a force in the operating space
Degree.
17. device according to claim 15, which is characterized in that the operating space includes accelerating region and deceleration area, described
Accelerating region is region in the same direction with the direction of advance of the virtual objects in the operating space, and the deceleration area is the operating space
In the region reversed with the direction of advance of the virtual objects.
18. device according to claim 17, which is characterized in that the detection unit further includes:
Angle detecting module, the direction of advance for virtual objects described in real-time detection.
19. device according to claim 17, which is characterized in that the virtual touch-control component is with the second operator scheme
When work, described control unit includes plus/minus speed module, accelerates mobile or movement of slowing down for controlling the virtual objects;
The plus/minus speed module is used for the virtual touch-control component when the pressing position is in the range of the accelerating region
It controls the virtual objects and carries out acceleration movement, be also used to when the pressing position is in the range of the deceleration area, it is described
Virtual objects described in virtual touch-control component controls carry out deceleration movement.
20. device according to claim 17, which is characterized in that further include acceleration calculation in the plus/minus speed module
Submodule carries out the mobile acceleration of acceleration or deceleration for calculating the virtual objects according to the pressing dynamics, calculates public
Formula is:
Wherein α is the acceleration, αmaxFor peak acceleration, f is the pressing dynamics, FmaxApply on contact for user
Pressing dynamics maximum value.
21. device according to claim 13, which is characterized in that described control unit includes steering module, for controlling
The virtual objects turn to, and the steering module includes:
Steering angular velocity computational submodule, for calculating the virtual objects in turning to moving process according to the pressing dynamics
Steering angular velocity, calculation formula is:
Wherein ω is the steering angular velocity, ωmaxFor steering locking angle speed, f is the pressing dynamics, FmaxIt is being touched for user
The pressing dynamics maximum value applied on point;
Course changing control submodule is turned to for controlling the virtual objects according to the steering angular velocity, is reached until turning to
Until steering angle θ '.
22. a kind of touch control device shows an operation interface on the touch control device, includes at least one in the operation interface
Virtual touch-control component, for corresponding with a virtual objects, and controls the movement of the virtual objects, which is characterized in that the touching
Controlling equipment includes:
Processor;And
For storing the memory of the processor executable command;
Wherein, the processor is configured to:
The touch information that user operates the virtual touch-control component and generates is detected, the touch information includes pressing position
It sets and pressing dynamics;
It is turned to accordingly according to the pressing position and the pressing dynamics control virtual objects and acceleration and deceleration is grasped
Make;
It wherein controls the virtual objects according to the pressing position and the pressing dynamics and turn to accordingly and include:
The pressing dynamics are judged whether less than a preset threshold, if the pressing dynamics are less than the preset threshold, institute
It states virtual touch-control component to work in the first mode of operation, passes through the pressing position control in response to the virtual touch-control component
The virtual objects carry out steering operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610218116.1A CN105912162B (en) | 2016-04-08 | 2016-04-08 | Control the method, apparatus and touch control device of virtual objects |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610218116.1A CN105912162B (en) | 2016-04-08 | 2016-04-08 | Control the method, apparatus and touch control device of virtual objects |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105912162A CN105912162A (en) | 2016-08-31 |
CN105912162B true CN105912162B (en) | 2018-11-20 |
Family
ID=56745865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610218116.1A Active CN105912162B (en) | 2016-04-08 | 2016-04-08 | Control the method, apparatus and touch control device of virtual objects |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105912162B (en) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992259A (en) * | 2016-10-27 | 2018-05-04 | 中兴通讯股份有限公司 | The definite method and device of kinematic parameter |
CN106648390B (en) * | 2016-12-05 | 2018-12-21 | 网易(杭州)网络有限公司 | A kind of control instruction generation method, device and mobile terminal |
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 |
CN108693990A (en) * | 2017-04-12 | 2018-10-23 | 中兴通讯股份有限公司 | A kind of terminal touch screen exchange method and device |
CN107019909B (en) * | 2017-04-13 | 2020-05-22 | 网易(杭州)网络有限公司 | Information processing method, information processing device, electronic equipment and computer readable storage medium |
CN107008003B (en) * | 2017-04-13 | 2020-08-14 | 网易(杭州)网络有限公司 | Information processing method, information processing device, electronic equipment and computer readable storage medium |
WO2018201357A1 (en) * | 2017-05-03 | 2018-11-08 | 深圳二郎神工业设计有限公司 | Control module and remote controller for pressure-sensing touch control and high-precision input control |
CN107132988B (en) * | 2017-06-06 | 2019-11-05 | 网易(杭州)网络有限公司 | Virtual objects condition control method, device, electronic equipment and storage medium |
CN109491579B (en) | 2017-09-12 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Method and device for controlling virtual object |
CN108379843B (en) * | 2018-03-16 | 2022-05-31 | 网易(杭州)网络有限公司 | Virtual object control method and device |
CN108536353B (en) * | 2018-03-23 | 2020-06-16 | 网易(杭州)网络有限公司 | Interface display control method, device and storage medium |
CN108721893B (en) * | 2018-03-27 | 2022-03-04 | 网易(杭州)网络有限公司 | Method and device for controlling virtual carrier in game and computer readable storage medium |
CN108744527B (en) * | 2018-03-27 | 2021-11-12 | 网易(杭州)网络有限公司 | Method and device for controlling virtual carrier in game and computer readable storage medium |
CN108635841B (en) * | 2018-03-27 | 2021-08-10 | 网易(杭州)网络有限公司 | Method and device for controlling carrier in racing game |
CN108434733B (en) * | 2018-03-28 | 2020-12-01 | 网易(杭州)网络有限公司 | Speed control method and device for game object |
CN108525295A (en) * | 2018-04-18 | 2018-09-14 | 网易(杭州)网络有限公司 | The method for control speed and device of virtual objects |
CN108905198A (en) * | 2018-06-04 | 2018-11-30 | 网易(杭州)网络有限公司 | A kind of control method and device of virtual objects jump |
CN109107151A (en) * | 2018-06-22 | 2019-01-01 | 网易(杭州)网络有限公司 | Virtual object control method and device, electronic equipment, storage medium |
CN109254546A (en) * | 2018-08-13 | 2019-01-22 | 瑞声科技(新加坡)有限公司 | Virtual car Engine Control System and method |
CN109395373B (en) | 2018-09-14 | 2021-12-07 | 深圳市腾讯信息技术有限公司 | Object control method and device, storage medium and electronic device |
CN109316745B (en) * | 2018-10-12 | 2022-05-31 | 网易(杭州)网络有限公司 | Virtual object motion control method and device, electronic equipment and storage medium |
CN109407959B (en) * | 2018-10-31 | 2020-11-10 | 腾讯科技(深圳)有限公司 | Virtual object control method, device and storage medium in virtual scene |
CN109491586B (en) * | 2018-11-14 | 2021-06-04 | 网易(杭州)网络有限公司 | Virtual object control method and device, electronic equipment and storage medium |
CN110597449B (en) * | 2019-09-12 | 2021-10-29 | 腾讯科技(深圳)有限公司 | Prop using method, device, terminal and storage medium based on virtual environment |
CN111104021B (en) * | 2019-12-19 | 2022-11-08 | 腾讯科技(深圳)有限公司 | Control method and device of virtual prop, storage medium and electronic device |
CN111469908B (en) * | 2020-03-23 | 2022-10-18 | 浙江吉利汽车研究院有限公司 | Touch control steering wheel, control method and automobile |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105327506A (en) * | 2015-10-14 | 2016-02-17 | 网易(杭州)网络有限公司 | Game role controlling method and device |
CN105446525A (en) * | 2015-11-10 | 2016-03-30 | 网易(杭州)网络有限公司 | Method for controlling behavior of game role |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160085334A1 (en) * | 2014-09-23 | 2016-03-24 | Innolux Corporation | Touch-sensing device |
-
2016
- 2016-04-08 CN CN201610218116.1A patent/CN105912162B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105327506A (en) * | 2015-10-14 | 2016-02-17 | 网易(杭州)网络有限公司 | Game role controlling method and device |
CN105446525A (en) * | 2015-11-10 | 2016-03-30 | 网易(杭州)网络有限公司 | Method for controlling behavior of game role |
Also Published As
Publication number | Publication date |
---|---|
CN105912162A (en) | 2016-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912162B (en) | Control the method, apparatus and touch control device of virtual objects | |
CN110045825B (en) | Gesture recognition system for vehicle interaction control | |
KR101956410B1 (en) | Game controller on mobile touch-enabled devices | |
CN104460974B (en) | Vehicle control device | |
CN103870802B (en) | System and method using the user interface in paddy operation vehicle is referred to | |
US20110009195A1 (en) | Configurable representation of a virtual button on a game controller touch screen | |
US8460097B2 (en) | Information storage medium and game image generation device | |
CN106095076B (en) | Input state switching method and device | |
US9298306B2 (en) | Control apparatus and computer program product for processing touchpad signals | |
JP2016538780A (en) | Method and apparatus for remotely controlling vehicle functions | |
US20180203519A1 (en) | Operation apparatus for vehicle | |
US20140022171A1 (en) | System and method for controlling an external system using a remote device with a depth sensor | |
JP2010184600A (en) | Onboard gesture switch device | |
JP2023089287A (en) | Game program, information processing device, information processing system, and game processing method | |
US20170297603A1 (en) | Vehicle and steering unit | |
JP2016218774A (en) | program | |
JP2016167219A (en) | Method and program for displaying user interface on head-mounted display | |
CN107567609B (en) | Method for operating an input device, motor vehicle | |
CN113548061B (en) | Man-machine interaction method and device, electronic equipment and storage medium | |
CN107054443A (en) | A kind of steering control device and the vehicles, driving control method | |
CN108635841B (en) | Method and device for controlling carrier in racing game | |
JP5873592B1 (en) | User interface program for determining three-point slide operation | |
CN112386904A (en) | Data processing method of game function key position based on vehicle and vehicle | |
EP2581811A1 (en) | Rolling type input device, method and electronic equipment for setting sensitivity thereof | |
US20180267618A1 (en) | Method for gesture based human-machine interaction, portable electronic device and gesture based human-machine interface system |
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 |