TWI807310B - Method, device, electronic device and computer storage medium for controlling virtual object movement - Google Patents

Method, device, electronic device and computer storage medium for controlling virtual object movement Download PDF

Info

Publication number
TWI807310B
TWI807310B TW110114974A TW110114974A TWI807310B TW I807310 B TWI807310 B TW I807310B TW 110114974 A TW110114974 A TW 110114974A TW 110114974 A TW110114974 A TW 110114974A TW I807310 B TWI807310 B TW I807310B
Authority
TW
Taiwan
Prior art keywords
virtual object
virtual
equal
zero
predetermined
Prior art date
Application number
TW110114974A
Other languages
Chinese (zh)
Other versions
TW202146091A (en
Inventor
李博
趙林
邱昌杰
伍驍煜
Original Assignee
大陸商珠海網易達電子科技發展有限公司
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 大陸商珠海網易達電子科技發展有限公司 filed Critical 大陸商珠海網易達電子科技發展有限公司
Publication of TW202146091A publication Critical patent/TW202146091A/en
Application granted granted Critical
Publication of TWI807310B publication Critical patent/TWI807310B/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1037Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted for converting control signals received from the game device into a haptic signal, e.g. using force feedback
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8017Driving on land or water; Flying

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Pinball Game Machines (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本公開涉及一種用於控制虛擬物運動的方法、裝置、電子設備和電腦可讀存儲介質。該方法可以包括根據確定接收到控制指令,將第一虛擬物相對於第二虛擬物的期望運動方向與第一虛擬物的前進軸方向之間的夾角設置為不等於零。該方法進一步包括將第一虛擬物與第二虛擬物之間的接觸區域在與前進軸垂直的橫軸方向上的阻力係數設置為不等於零。並且,該方法可以進一步包括根據確定經過預定時間段,將期望運動方向與所述前進軸方向之間的所述夾角設置為等於零;以及根據確定接收到取消控制指令,將接觸區域的阻力係數設置為等於零。通過該方法,可以降低用戶控制虛擬物的操作難度,並且降低操作的失誤率,從而提供良好的用戶體驗。 The present disclosure relates to a method, device, electronic equipment and computer-readable storage medium for controlling the movement of virtual objects. The method may include setting an angle between a desired motion direction of the first virtual object relative to the second virtual object and a forward axis direction of the first virtual object to be not equal to zero according to determining that the control command is received. The method further includes setting the drag coefficient of the contact area between the first virtual object and the second virtual object in the direction of the horizontal axis perpendicular to the forward axis to be not equal to zero. And, the method may further include setting the angle between the desired motion direction and the forward axis direction to be equal to zero according to the determination that a predetermined period of time has elapsed; and setting the drag coefficient of the contact area to be equal to zero according to the determination that a cancel control instruction is received. Through this method, the operation difficulty for the user to control the virtual object can be reduced, and the error rate of operation can be reduced, thereby providing a good user experience.

Description

控制虛擬物運動的方法、裝置、電子設備和電腦存儲介 質 Method, device, electronic device and computer storage medium for controlling virtual object movement quality

本公開的實施例主要涉及電腦領域,並且更具體地,涉及用於控制虛擬物運動的方法、裝置、電子設備和電腦可讀存儲介質。 The embodiments of the present disclosure mainly relate to the field of computers, and more specifically, to methods, devices, electronic devices and computer-readable storage media for controlling the movement of virtual objects.

在使用駕駛類或競速環境的應用中,當用戶要完成諸如使得虛擬物漂移操作的特定操作指令時,通常需要使用者通過複雜的操作使諸如虛擬車輛的虛擬物進入漂移狀態,並且在漂移狀態中進一步執行後續操作。然而,這種操作控制模式很可能會增大使用者在使用時的操作難度,並且帶來極大的操作失誤率,不能為新用戶提供良好的用戶體驗。 In applications using driving or racing environments, when the user wants to complete a specific operation instruction such as making the virtual object drift, the user usually needs to make the virtual object such as the virtual vehicle enter the drift state through complex operations, and further perform subsequent operations in the drift state. However, this operation control mode is likely to increase the operational difficulty of the user during use, and bring a high rate of operational errors, which cannot provide good user experience for new users.

針對上述的問題,目前尚未提出有效的解決方案。 For the above problems, no effective solution has been proposed yet.

根據本公開的示例實施例,提供了一種用於控制虛擬物運動的方案。 According to an example embodiment of the present disclosure, a scheme for controlling motion of a virtual object is provided.

在本公開的第一方面中,提供了一種用於控制虛擬物運動的方法。該方法可以包括根據確定接收到控制指令,將第一虛擬物相對於第二虛擬物的期望運動方向與所述第一虛擬物的前進軸方向之間的夾角設置為不等於 零。該方法進一步包括將所述第一虛擬物與所述第二虛擬物之間的接觸區域在與所述前進軸垂直的橫軸方向上的阻力係數設置為不等於零。並且,該方法可以進一步包括根據確定經過預定時間段,將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零。此外,該方法還可以包括根據確定接收到取消控制指令,將所述接觸區域的所述阻力係數設置為等於零。 In a first aspect of the present disclosure, a method for controlling motion of a virtual object is provided. The method may include, according to determining that a control command is received, setting an included angle between a desired motion direction of the first virtual object relative to the second virtual object and the forward axis direction of the first virtual object to be not equal to zero. The method further includes setting the drag coefficient of the contact area between the first virtual object and the second virtual object in the direction of the horizontal axis perpendicular to the forward axis to be not equal to zero. And, the method may further include setting the angle between the desired motion direction and the forward axis direction equal to zero based on the determination that a predetermined period of time has elapsed. Additionally, the method may further include setting the drag coefficient of the contact area equal to zero based on determining that a cancel control command is received.

在某些實施例中,所述第一虛擬物是虛擬車輛,所述虛擬車輛包括前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中將所述期望運動方向與所述前進軸方向之間的所述夾角設置為不等於零包括:調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為不等於零。 In some embodiments, the first virtual object is a virtual vehicle, the virtual vehicle includes a front module, and the desired motion direction is determined by an orientation of the front module of the virtual vehicle, and wherein setting the angle between the desired motion direction and the direction of the forward axis to be not equal to zero includes: adjusting the orientation of the front module of the virtual vehicle to set the angle to be not equal to zero.

在某些實施例中,所述第一虛擬物是虛擬車輛,所述第二虛擬物是虛擬地面,所述虛擬車輛包括所述接觸區域,並且其中將所述接觸區域的所述阻力係數設置為不等於零包括:檢測所述期望運動方向與所述前進軸方向之間的所述夾角;以及回應於所述夾角不等於零,將所述接觸區域與所述虛擬地面在所述橫軸方向上的阻力係數設置為不等於零。 In some embodiments, the first virtual object is a virtual vehicle, the second virtual object is a virtual ground, the virtual vehicle includes the contact area, and setting the drag coefficient of the contact area to be not equal to zero includes: detecting the included angle between the desired motion direction and the direction of the forward axis; and in response to the included angle being not equal to zero, setting the drag coefficient of the contact area and the virtual ground in the direction of the transverse axis to be not equal to zero.

在某些實施例中,所述第一虛擬物是虛擬車輛,所述虛擬車輛包括前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零包括:調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為等於零。 In some embodiments, the first virtual object is a virtual vehicle, the virtual vehicle includes a front module, the desired motion direction is determined by an orientation of the front module of the virtual vehicle, and wherein setting the angle between the desired motion direction and the direction of the forward axis to be equal to zero comprises: adjusting the orientation of the front module of the virtual vehicle to set the angle to be equal to zero.

在某些實施例中,上述方法還可以包括:回應於接收到所述控制指令,以預定策略降低所述虛擬物的行進速度。 In some embodiments, the above method may further include: in response to receiving the control instruction, reducing the traveling speed of the virtual object with a predetermined policy.

在某些實施例中,所述控制指令是預定轉向操作指令,所述預定轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的觸摸操作;預定手勢操作;以及預定聲控操作。 In some embodiments, the control instruction is a predetermined steering operation instruction, and the predetermined steering operation instruction is triggered by one or more of the following operations: a touch operation on a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation.

在某些實施例中,所述取消控制指令是取消轉向操作指令,所述取消轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的釋放操作;預定手勢操作;以及預定聲控操作。 In some embodiments, the canceling control command is a canceling steering operation command, and the canceling steering operation command is triggered by one or more of the following operations: a release operation of a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation.

在本公開的第二方面中,提供了一種用於控制虛擬物運動的裝置,包括:第一夾角設置模組,被配置為根據確定接收到控制指令,將第一虛擬物相對於第二虛擬物的期望運動方向與所述第一虛擬物的前進軸方向之間的夾角設置為不等於零;第一阻力設置模組,被配置為將所述第一虛擬物與所述第二虛擬物之間的接觸區域在與所述前進軸垂直的橫軸方向上的阻力係數設置為不等於零;第二夾角設置模組,被配置為根據確定經過預定時間段,將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零;以及第二阻力設置模組,被配置為根據確定接收到取消控制指令,將所述接觸區域的所述阻力係數設置為等於零。 In a second aspect of the present disclosure, there is provided a device for controlling the movement of a virtual object, including: a first included angle setting module configured to set the angle between the desired movement direction of the first virtual object relative to the second virtual object and the direction of the advancing axis of the first virtual object to be not equal to zero according to receiving a control command; the first resistance setting module is configured to set the resistance coefficient of the contact area between the first virtual object and the second virtual object in the direction of the horizontal axis perpendicular to the advancing axis to be not equal to zero; the second included angle setting module is configured Set the angle between the desired motion direction and the direction of the forward axis to be equal to zero after a predetermined time period has elapsed according to the determination; and a second resistance setting module is configured to set the resistance coefficient of the contact area to be equal to zero according to the determination that a cancel control instruction is received.

在本公開的第三方面中,提供了一種電子設備,包括一個或多個處理器;以及存儲裝置,用於存儲一個或多個程式,當一個或多個程式被一個或多個處理器執行,使得一個或多個處理器實現根據本公開的第一方面的方法。 In a third aspect of the present disclosure, an electronic device is provided, including one or more processors; and a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, so that the one or more processors implement the method according to the first aspect of the present disclosure.

在本公開的第四方面中,提供了一種電腦可讀存儲介質,其上存儲有電腦程式,該程式被處理器執行時實現根據本公開的第一方面的方法。 In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

應當理解,發明內容部分中所描述的內容並非旨在限定本公開的實施例的關鍵或重要特徵,亦非用於限制本公開的範圍。本公開的其它特徵將通過以下的描述變得容易理解。 It should be understood that what is described in the Summary of the Invention is not intended to limit the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.

100:示例環境 100:Example environment

110:控制指令 110: Control command

120:計算設備 120: Computing equipment

130:運動實現 130: Motion Realization

210:第一虛擬物 210: The first virtual object

220:第二虛擬物 220: The second virtual object

210’:虛擬車輛 210': Virtual Vehicle

220’:虛擬地面 220': virtual ground

300:過程 300: process

302、304、306、308:步驟 302, 304, 306, 308: steps

400:裝置 400: device

402:第一夾角設置模組 402: The first included angle setting module

404:第一阻力設置模組 404: The first resistance setting module

406:第二夾角設置模組 406: The second included angle setting module

408:第二阻力設置模組 408: The second resistance setting module

500:設備/裝置 500: Equipment/device

501:處理單元/CPU 501: Processing unit/CPU

502:ROM 502: ROM

503:RAM 503: RAM

504:匯流排 504: Bus

505:I/O介面 505: I/O interface

506:輸入單元 506: input unit

507:輸出單元 507: output unit

508:存儲單元 508: storage unit

509:通信單元 509: communication unit

α:夾角 α: included angle

結合附圖並參考以下詳細說明,本公開各實施例的上述和其他特徵、優點及方面將變得更加明顯。在附圖中,相同或相似的附圖標注表示相同或相似的元素,其中:圖1示出了本公開的多個實施例能夠在其中實現的示例環境的示意圖;圖2A示出了根據本公開的實施例的虛擬物的相對運動關係的示意圖;圖2B示出了根據本公開的另一實施例的虛擬物的相對運動關係的示意圖;圖3示出了根據本公開的實施例的用於控制虛擬物運動的過程的流程圖;圖4示出了根據本公開的實施例的用於控制虛擬物運動的裝置的框圖;以及圖5示出了能夠實施本公開的多個實施例的計算設備的框圖。 The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description when taken in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein: FIG. 1 shows a schematic diagram of an example environment in which multiple embodiments of the present disclosure can be implemented; FIG. 2A shows a schematic diagram of a relative motion relationship of a virtual object according to an embodiment of the present disclosure; FIG. 2B shows a schematic diagram of a relative motion relationship of a virtual object according to another embodiment of the present disclosure; FIG. Block Diagram; and FIG. 5 shows a block diagram of a computing device capable of implementing various embodiments of the present disclosure.

下面將參照附圖更詳細地描述本公開的實施例。雖然附圖中顯示了本公開的某些實施例,然而應當理解的是,本公開可以通過各種形式來實現,而且不應該被解釋為限於這裡闡述的實施例,相反提供這些實施例是為了更加透徹和完整地理解本公開。應當理解的是,本公開的附圖及實施例僅用於示例性作用,並非用於限制本公開的保護範圍。 Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided so that the disclosure will be more thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.

在本公開的實施例的描述中,術語「包括」及其類似用語應當理解為開放性包含,即「包括但不限於」。術語「基於」應當理解為「至少部分地基於」。術語「一個實施例」或「該實施例」應當理解為「至少一個實施例」。術語「第一」、「第二」等等可以指代不同的或相同的物件。下文還可能包括其他明確的和隱含的定義。 In the description of the embodiments of the present disclosure, the term "include" and its similar expressions should be interpreted as an open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be read as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same item. Other definitions, both express and implied, may also be included below.

如上文所述,如何簡化對在人機交互中對虛擬物的控制操作是目前亟需解決的問題。 As mentioned above, how to simplify the control operation of virtual objects in human-computer interaction is an urgent problem to be solved at present.

根據本公開的實施例,提出一種控制虛擬物運動的改進方案。在該方案中,通過識別特定操作指令,來對虛擬物的特定參數進行一系列的設定或修改,從而實現較為複雜的控制虛擬物運動的操作。通過該方法,可以降低用戶在使用時的操作難度,並且降低操作的失誤率,從而為用戶提供良好的用戶體驗。 According to an embodiment of the present disclosure, an improved solution for controlling the motion of a virtual object is proposed. In this solution, a series of settings or modifications are made to specific parameters of the virtual object by identifying specific operating instructions, thereby realizing a relatively complex operation of controlling the movement of the virtual object. Through this method, the operation difficulty of the user during use can be reduced, and the error rate of operation can be reduced, thereby providing a good user experience for the user.

圖1示出了本公開的多個實施例能夠在其中實現的示例環境100的示意圖。在該示例環境100中,控制指令110可以是系統檢測到的來自使用者的操作指令。作為示例,控制指令110可以是系統的觸控面板檢測到的使用者介面中的預定觸控區域的觸摸操作。作為另一示例,控制指令110可以是系統的體感模組檢測到的使用者的預定手勢操作。作為又一示例,控制指令110可以 是系統的聲控模組檢測到的使用者的預定聲控操作。應理解,上述示例僅是描述本公開,而非對本公開的具體限定。 FIG. 1 shows a schematic diagram of an example environment 100 in which various embodiments of the present disclosure can be implemented. In the example environment 100, the control instruction 110 may be an operation instruction from a user detected by the system. As an example, the control instruction 110 may be a touch operation of a predetermined touch area in the user interface detected by the touch panel of the system. As another example, the control instruction 110 may be a predetermined gesture operation of the user detected by the motion sensing module of the system. As yet another example, the control instruction 110 may It is the predetermined voice control operation of the user detected by the voice control module of the system. It should be understood that the above examples are only for describing the present disclosure, rather than specifically limiting the present disclosure.

之後,如圖1所示,控制指令110被輸入至計算設備120。在一些實施例中,計算設備120可以是使用者的移動設備(諸如行動電話),當然,其也可以是位於雲端的計算設備。計算設備120用於根據接收到的控制指令110來對受控的虛擬物的特定參數進行一系列的設定或修改。在一些實施列中,計算設備120包括但不限於個人電腦、伺服器電腦、手持或膝上型設備、多處理器系統、消費電子產品、遊戲機、小型電腦、大型電腦、其他移動設備(諸如個人數位助理(PDA)、媒體播放機等)、或者包括上述系統或設備中的任意一個的分散式運算環境等。 Afterwards, as shown in FIG. 1 , the control instruction 110 is input to the computing device 120 . In some embodiments, the computing device 120 may be a user's mobile device (such as a mobile phone), of course, it may also be a computing device located in the cloud. The computing device 120 is used for performing a series of settings or modifications on specific parameters of the controlled virtual object according to the received control instruction 110 . In some embodiments, computing device 120 includes, but is not limited to, a personal computer, server computer, handheld or laptop device, multiprocessor system, consumer electronics, game console, minicomputer, mainframe computer, other mobile device (such as a personal digital assistant (PDA), media player, etc.), or a distributed computing environment including any of the above systems or devices, and the like.

經過計算設備120的處理,控制指令110被轉換為虛擬物的較為複雜的運動實現(motion implementation)130。運動實現130即虛擬物在虛擬環境中的運動方式。作為示例,當虛擬環境中存在兩個虛擬物時,運動實現130是第一虛擬物相對於第二虛擬物的運動。 After being processed by the computing device 120, the control instruction 110 is converted into a relatively complex motion implementation 130 of the virtual object. The motion realization 130 is the motion mode of the virtual object in the virtual environment. As an example, when there are two virtual objects in the virtual environment, the motion realization 130 is the motion of the first virtual object relative to the second virtual object.

應當理解,圖1示出的環境僅是示例性的,而非對本公開的具體限定。 It should be understood that the environment shown in FIG. 1 is only exemplary, rather than specifically limiting the present disclosure.

圖2A示出了根據本公開的實施例的虛擬物的相對運動關係的示意圖。如圖2A所示,第一虛擬物210位於第二虛擬物220之上。作為示例,圖2A示出了簡單的駕駛類場景,即,第一虛擬物210相對於第二虛擬物220具有相對運動。例如,第一虛擬物210可以是諸如立方體的任意形狀的受控虛擬物,第二虛擬物220是駕駛類場景中的賽道的至少一部分。又例如,第一虛擬物210可以是虛擬車輛,第二虛擬物220是虛擬地面的至少一部分。還例如,第一虛 擬物210可以是虛擬雪橇,第二虛擬物220是用於滑雪/滑冰的虛擬賽道的至少一部分。應理解,圖2A中的示圖僅是示例性的,並非用於限制本公開。 FIG. 2A shows a schematic diagram of the relative motion relationship of a virtual object according to an embodiment of the present disclosure. As shown in FIG. 2A , the first virtual object 210 is located on the second virtual object 220 . As an example, FIG. 2A shows a simple driving scene, that is, the first virtual object 210 has relative motion relative to the second virtual object 220 . For example, the first virtual object 210 may be a controlled virtual object of any shape such as a cube, and the second virtual object 220 is at least a part of a track in a driving scene. For another example, the first virtual object 210 may be a virtual vehicle, and the second virtual object 220 is at least a part of the virtual ground. Also for example, the first virtual The quasi-object 210 may be a virtual sled, and the second virtual object 220 is at least a part of a virtual track for skiing/skating. It should be understood that the diagram in FIG. 2A is only exemplary and not intended to limit the present disclosure.

為了更清晰詳細地描述本公開的實施例,下面將以虛擬車輛為例進行詳細描述。 In order to describe the embodiments of the present disclosure more clearly and in detail, a virtual vehicle will be taken as an example for detailed description below.

圖2B示出了根據本公開的另一實施例的虛擬車輛210’與虛擬地面220’的相對運動關係的示意圖。如2B所示,虛擬車輛210’包括前部模組,即,前輪。虛擬車輛210’的前輪的朝向可以被認為是虛擬車輛210’的期望運動方向,其與虛擬車輛210’的前進軸形成夾角α。此外,虛擬車輛210’還包括後部模組,即,後輪。虛擬車輛210’的後輪與虛擬地面220’之間存在阻力係數,例如,滑動摩擦係數。該滑動摩擦係數與虛擬車輛210’的漂移操作相關聯。 Fig. 2B shows a schematic diagram of the relative motion relationship between a virtual vehicle 210' and a virtual ground 220' according to another embodiment of the present disclosure. As shown in 2B, the virtual vehicle 210' includes a front module, i.e., front wheels. The orientation of the front wheels of the virtual vehicle 210' can be considered as the desired moving direction of the virtual vehicle 210', which forms an angle α with the forward axis of the virtual vehicle 210'. In addition, the virtual vehicle 210' also includes a rear module, i.e., rear wheels. There is a drag coefficient, for example, a sliding friction coefficient, between the rear wheels of the virtual vehicle 210' and the virtual ground 220'. This coefficient of sliding friction is associated with the drifting maneuvers of the virtual vehicle 210'.

圖3示出了根據本公開的實施例的用於控制虛擬物運動的過程300的流程圖。在某些實施例中,過程300可以在圖5示出的設備中實現。現參照圖1、圖2A和圖2B描述根據本公開實施例的用於控制虛擬物運動的過程300。為了便於理解,在下文描述中提及的具體實例均是示例性的,並不用於限定本公開的保護範圍。 FIG. 3 shows a flowchart of a process 300 for controlling the motion of a virtual object according to an embodiment of the present disclosure. In some embodiments, process 300 may be implemented in the device shown in FIG. 5 . A process 300 for controlling the motion of a virtual object according to an embodiment of the present disclosure will now be described with reference to FIG. 1 , FIG. 2A and FIG. 2B . For ease of understanding, the specific examples mentioned in the following description are all illustrative, and are not intended to limit the protection scope of the present disclosure.

在302,計算設備120可以根據確定接收到控制指令110,將第一虛擬物210相對於第二虛擬物220的期望運動方向與第一虛擬物210的前進軸方向之間的夾角設置為不等於零。在某些實施例中,第一虛擬物210可以是虛擬車輛210’,虛擬車輛210’包括前部模組(如圖2B中的虛擬車輛210’的前輪)。此外,期望運動方向由虛擬車輛210’的前部模組的朝向確定,其與虛擬車輛210’的前進軸方向之間的夾角為α。因此,當接收到控制指令110時,計算設備120可以調整虛擬車輛210’的前輪的朝向,以將夾角α設置為不等於零。例如, 可以根據來自使用者的左轉操作的控制指令將夾角α設置為小於60°的夾角。優選地,夾角α被設置為20°。 At 302, the computing device 120 may set the angle between the desired motion direction of the first virtual object 210 relative to the second virtual object 220 and the forward axis direction of the first virtual object 210 to be not equal to zero according to determining that the control instruction 110 is received. In some embodiments, the first virtual object 210 may be a virtual vehicle 210', and the virtual vehicle 210' includes a front module (such as the front wheels of the virtual vehicle 210' in FIG. 2B). In addition, the desired moving direction is determined by the orientation of the front module of the virtual vehicle 210', and the angle between it and the direction of the forward axis of the virtual vehicle 210' is α. Therefore, when receiving the control instruction 110, the computing device 120 can adjust the orientation of the front wheels of the virtual vehicle 210' to set the included angle α to be different from zero. For example, The included angle α may be set to an included angle smaller than 60° according to a control command from the user's left turn operation. Preferably, the included angle α is set to 20°.

在304,計算設備120可以將第一虛擬物210與第二虛擬物220之間的接觸區域在與前進軸垂直的橫軸方向上的阻力係數設置為不等於零。在某些實施例中,第一虛擬物210可以是虛擬車輛210’,第二虛擬物220是虛擬地面220’。虛擬車輛210’包括接觸區域,具體可以是虛擬車輛210’的後輪與虛擬地面220’的接觸區域(圖2B中未示出),其可以視為圖2A中的第一虛擬物210與第二虛擬物220之間的接觸區域。因此,當接收到控制指令110時,計算設備120可以檢測期望運動方向與前進軸方向之間的夾角α。當夾角α不等於零時,計算設備120可以將接觸區域與虛擬地面220’在橫軸方向上的滑動摩擦係數設置為不等於零,從而實現虛擬車輛210’的後輪的側滑。 At 304, the computing device 120 may set the drag coefficient of the contact area between the first virtual object 210 and the second virtual object 220 in the direction of the horizontal axis perpendicular to the forward axis to be not equal to zero. In some embodiments, the first virtual object 210 may be a virtual vehicle 210', and the second virtual object 220 may be a virtual ground 220'. The virtual vehicle 210' includes a contact area, specifically the contact area (not shown in FIG. 2B ) between the rear wheel of the virtual vehicle 210' and the virtual ground 220', which can be regarded as the contact area between the first virtual object 210 and the second virtual object 220 in FIG. 2A. Therefore, when the control command 110 is received, the computing device 120 can detect the angle α between the desired motion direction and the forward axis direction. When the included angle α is not equal to zero, the computing device 120 can set the sliding friction coefficient between the contact area and the virtual ground 220' in the direction of the horizontal axis to be not equal to zero, so as to realize the sideslip of the rear wheels of the virtual vehicle 210'.

在306,計算設備120可以在經過預定時間段之後將期望運動方向與前進軸方向之間的夾角α設置為等於零。在某些實施例中,第一虛擬物210是虛擬車輛210’,虛擬車輛210’包括前部模組(如圖2B中的虛擬車輛210’的前輪)。此外,期望運動方向由虛擬車輛210’的前部模組的朝向確定,其與虛擬車輛210’的前進軸方向之間的夾角為α。因此,當確定經過預定時間段之後,計算設備120可以調整虛擬車輛210’的前輪的朝向,以將夾角α設置為等於零。在此預定時間段期間,夾角α的值可能會圍繞零進行改變。作為示例,該預定時間段可以由用戶的控制轉向的控制指令來確定。 At 306 , computing device 120 may set an angle α between the desired direction of motion and the direction of the forward axis equal to zero after a predetermined period of time has elapsed. In some embodiments, the first virtual object 210 is a virtual vehicle 210', and the virtual vehicle 210' includes a front module (such as the front wheels of the virtual vehicle 210' in FIG. 2B). In addition, the desired moving direction is determined by the orientation of the front module of the virtual vehicle 210', and the angle between it and the direction of the forward axis of the virtual vehicle 210' is α. Therefore, after determining that the predetermined period of time has elapsed, the computing device 120 may adjust the orientation of the front wheels of the virtual vehicle 210' to set the included angle α equal to zero. During this predetermined time period, the value of the included angle α may change around zero. As an example, the predetermined period of time may be determined by the user's control command to control the steering.

在308,計算設備120可以根據確定接收到取消控制指令,將接觸區域的阻力係數設置為等於零。在某些實施例中,第一虛擬物210可以是虛擬車輛210’,第二虛擬物220是虛擬地面220’。虛擬車輛210’包括接觸區域,具體 可以是虛擬車輛210’的後輪與虛擬地面220’的接觸區域(圖2B中未示出),其可以視為圖2A中的第一虛擬物210與第二虛擬物220之間的接觸區域。因此,當接收到取消控制指令時,計算設備120可以將接觸區域與虛擬地面220’在橫軸方向上的滑動摩擦係數設置為等於零,從而取消虛擬車輛210’的後輪的側滑。 At 308, computing device 120 may set the drag coefficient of the contact area equal to zero based on the determination that a cancel control instruction was received. In some embodiments, the first virtual object 210 may be a virtual vehicle 210', and the second virtual object 220 may be a virtual ground 220'. The virtual vehicle 210' includes contact areas, specifically It may be the contact area (not shown in FIG. 2B ) between the rear wheels of the virtual vehicle 210' and the virtual ground 220', which may be regarded as the contact area between the first virtual object 210 and the second virtual object 220 in FIG. 2A. Therefore, when receiving the cancel control instruction, the computing device 120 can set the sliding friction coefficient between the contact area and the virtual ground 220' in the horizontal axis direction to be equal to zero, thereby canceling the sideslip of the rear wheels of the virtual vehicle 210'.

以此方式,可以減少來自使用者的用於觸發複雜運動的操作,從而降低用戶控制虛擬物的操作難度。 In this manner, operations for triggering complex motions from the user can be reduced, thereby reducing the difficulty of the user's operation for controlling the virtual object.

在某些實施例中,過程300還可以包括以預定策略降低第一虛擬物210或者虛擬車輛210’的行進速度。作為示例,當接收到使用者的控制指令110之後,可以基於人工擬合的函數曲線來實現第一虛擬物210或者虛擬車輛210’的降速。 In some embodiments, the process 300 may also include reducing the traveling speed of the first virtual object 210 or the virtual vehicle 210' according to a predetermined strategy. As an example, after receiving the user's control command 110, the deceleration of the first virtual object 210 or the virtual vehicle 210' can be realized based on the artificially fitted function curve.

在某些實施例中,控制指令110可以是來自使用者的預定轉向操作指令,例如,漂移指令。該預定轉向操作指令可以由使用者介面中的預定觸控區域的觸摸操作、預定手勢操作以及預定聲控操作中的一項或多項而觸發。相應地,上述取消控制指令可以是來自使用者的預定取消轉向操作指令,例如,取消漂移指令。該取消轉向操作指令可以由使用者介面中的預定觸控區域的釋放操作、預定手勢操作以及預定聲控操作中的一項或多項而觸發。 In some embodiments, the control instruction 110 may be a predetermined steering operation instruction from the user, for example, a drift instruction. The predetermined steering operation instruction may be triggered by one or more of a touch operation on a predetermined touch area in the user interface, a predetermined gesture operation, and a predetermined voice control operation. Correspondingly, the above-mentioned canceling control instruction may be a predetermined canceling steering operation instruction from the user, for example, canceling a drifting instruction. The command to cancel the steering operation may be triggered by one or more of a release operation of a predetermined touch area in the user interface, a predetermined gesture operation, and a predetermined voice control operation.

通過上述方法,可以輔助用戶實現複雜操作,而並不增加用戶的操作難度。此外,由於減少了使用者的指令輸入數量,故可以降低用戶的操作失誤率。因此,全面提升了用戶體驗。 Through the above method, the user can be assisted to realize complex operations without increasing the difficulty of the user's operation. In addition, since the number of user's instruction input is reduced, the user's operation error rate can be reduced. Therefore, the user experience is comprehensively improved.

圖4示出了根據本公開實施例的用於控制虛擬物運動的裝置400的示意性框圖。如圖4所示,裝置400可以包括:第一夾角設置模組402,被配置為根據確定接收到控制指令,將第一虛擬物相對於第二虛擬物的期望運動方向 與所述第一虛擬物的前進軸方向之間的夾角設置為不等於零;第一阻力設置模組404,被配置為將所述第一虛擬物與所述第二虛擬物之間的接觸區域在與所述前進軸垂直的橫軸方向上的阻力係數設置為不等於零;第二夾角設置模組406,被配置為根據確定經過預定時間段,將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零;以及第二阻力設置模組408,被配置為根據確定接收到取消控制指令,將所述接觸區域的所述阻力係數設置為等於零。 Fig. 4 shows a schematic block diagram of an apparatus 400 for controlling the movement of a virtual object according to an embodiment of the present disclosure. As shown in FIG. 4 , the device 400 may include: a first included angle setting module 402 configured to, according to determining that a control command is received, set the desired moving direction of the first virtual object relative to the second virtual object The included angle between the advancing axis direction of the first virtual object is set to be not equal to zero; the first resistance setting module 404 is configured to set the resistance coefficient of the contact area between the first virtual object and the second virtual object in the direction of the horizontal axis perpendicular to the advancing axis to be not equal to zero; the second included angle setting module 406 is configured to set the included angle between the desired motion direction and the advancing axis direction to be equal to zero according to the determined passing of a predetermined period of time; and the second resistance setting module 408 is configured to receive To cancel the control command, the drag coefficient of the contact area is set equal to zero.

在某些實施例中,所述第一虛擬物可以是虛擬車輛,所述虛擬車輛包括前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中所述第一夾角設置模組402包括:第一朝向調整模組,被配置為調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為不等於零。 In some embodiments, the first virtual object may be a virtual vehicle, the virtual vehicle includes a front module, the desired movement direction is determined by the orientation of the front module of the virtual vehicle, and wherein the first angle setting module 402 includes: a first orientation adjustment module, configured to adjust the orientation of the front module of the virtual vehicle, so as to set the angle to be not equal to zero.

在某些實施例中,所述第一虛擬物可以是虛擬車輛,所述第二虛擬物是虛擬地面,所述虛擬車輛包括所述接觸區域,並且其中所述第一阻力設置模組404包括:夾角檢測模組,被配置為檢測所述期望運動方向與所述前進軸方向之間的所述夾角;以及阻力係數設置子模組,被配置為回應於所述夾角不等於零,將所述接觸區域與所述虛擬地面在所述橫軸方向上的阻力係數設置為不等於零。 In some embodiments, the first virtual object may be a virtual vehicle, the second virtual object may be a virtual ground, the virtual vehicle includes the contact area, and the first resistance setting module 404 includes: an included angle detection module configured to detect the included angle between the desired motion direction and the direction of the forward axis; and a drag coefficient setting sub-module configured to respond to the included angle being not equal to zero, and set the drag coefficient between the contact area and the virtual ground in the direction of the horizontal axis to be not equal to zero.

在某些實施例中,所述第一虛擬物可以是虛擬車輛,所述虛擬車輛包括前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中所述第二夾角設置模組406包括:第二朝向調整模組,被配置為調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為等於零。 In some embodiments, the first virtual object may be a virtual vehicle, the virtual vehicle includes a front module, the desired movement direction is determined by the orientation of the front module of the virtual vehicle, and wherein the second angle setting module 406 includes: a second orientation adjustment module configured to adjust the orientation of the front module of the virtual vehicle to set the angle to be equal to zero.

在某些實施例中,該裝置還可以包括:降速模組(未示出),被配置為回應於接收到所述控制指令,以預定策略降低所述第一虛擬物的行進速度。 In some embodiments, the device may further include: a speed reduction module (not shown), configured to reduce the traveling speed of the first virtual object in a predetermined strategy in response to receiving the control instruction.

在某些實施例中,所述控制指令可以是預定轉向操作指令,所述預定轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的觸摸操作;預定手勢操作;以及預定聲控操作。 In some embodiments, the control instruction may be a predetermined steering operation instruction, and the predetermined steering operation instruction is triggered by one or more of the following operations: a touch operation on a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation.

在某些實施例中,所述取消控制指令可以是取消轉向操作指令,所述取消轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的釋放操作;預定手勢操作;以及預定聲控操作。 In some embodiments, the canceling control command may be a canceling steering operation command, and the canceling steering operation command is triggered by one or more of the following operations: a release operation of a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation.

圖5示出了能夠實施本公開的多個實施例的計算設備500的框圖。設備500可以用於實現圖1的計算設備120。如圖所示,設備500包括中央處理單元(CPU)501,其可以根據存儲在唯讀記憶體(ROM)502中的電腦程式指令或者從存儲單元508載入到隨機訪問記憶體(RAM)503中的電腦程式指令,來執行各種適當的動作和處理。在RAM 503中,還可存放設備500操作所需的各種程式和資料。CPU 501、ROM 502以及RAM 503通過匯流排504彼此相連。輸入/輸出(I/O)介面505也連接至匯流排504。 FIG. 5 shows a block diagram of a computing device 500 capable of implementing various embodiments of the present disclosure. Device 500 may be used to implement computing device 120 of FIG. 1 . As shown in the figure, the device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or computer program instructions loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501 , ROM 502 , and RAM 503 are connected to each other by a bus bar 504 . An input/output (I/O) interface 505 is also connected to the bus bar 504 .

設備500中的多個部件連接至I/O介面505,包括:輸入單元506,例如鍵盤、滑鼠等;輸出單元507,例如各種類型的顯示器、擴音器等;存儲單元508,例如磁片、光碟等;以及通信單元509,例如網卡、數據機、無線通訊收發機等。通信單元509允許設備500通過諸如網際網路的電腦網路和/或各種電信網路與其他設備交換資訊/資料。 Multiple components in the device 500 are connected to the I/O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, loudspeakers, etc.; a storage unit 508, such as a magnetic disk, an optical disc, etc.; and a communication unit 509, such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the Internet and/or various telecommunication networks.

處理單元501執行上文所描述的各個方法和處理,例如過程300。例如,在一些實施例中,過程300可被實現為電腦軟體程式,其被有形地包含於機器可讀介質,例如存儲單元508。在一些實施例中,電腦程式的部分或者全部可以經由ROM 502和/或通信單元509而被載入和/或安裝到設備500上。當電腦程式載入到RAM 503並由CPU 501執行時,可以執行上文描述的過程300的一個或多個步驟。備選地,在其他實施例中,CPU 501可以通過其他任何適當的方式(例如,借助於固件)而被配置為執行過程300。 The processing unit 501 executes various methods and processes described above, such as the process 300 . For example, in some embodiments, process 300 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 508 . In some embodiments, part or all of the computer program can be loaded and/or installed on the device 500 via the ROM 502 and/or the communication unit 509 . When the computer program is loaded into RAM 503 and executed by CPU 501, one or more steps of process 300 described above may be performed. Alternatively, in other embodiments, the CPU 501 may be configured to execute the process 300 in any other suitable manner (eg, by means of firmware).

本文中以上描述的功能可以至少部分地由一個或多個硬體邏輯部件來執行。例如,非限制性地,可以使用的示範類型的硬體邏輯部件包括:現場可程式設計閘陣列(FPGA)、專用積體電路(ASIC)、專用標準產品(ASSP)、晶片上系統的系統(SOC)、負載可程式設計邏輯裝置(CPLD)等等。 The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Load Programmable Logic Devices (CPLDs), and the like.

用於實施本公開的方法的程式碼可以採用一個或多個程式設計語言的任何組合來編寫。這些程式碼可以提供給通用電腦、專用電腦或其他可程式設計資料處理裝置的處理器或控制器,使得程式碼當由處理器或控制器執行時使流程圖和/或框圖中所規定的功能/操作被實施。程式碼可以完全在機器上執行、部分地在機器上執行,作為獨立套裝軟體部分地在機器上執行且部分地在遠端機器上執行或完全在遠端機器或伺服器上執行。 Code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions/operations specified in the flowcharts and/or block diagrams are implemented. The code may execute entirely on the machine, partly on the machine, as a stand-alone package partly on the machine and partly on the remote machine or entirely on the remote machine or server.

在本公開的上下文中,機器可讀介質可以是有形的介質,其可以包含或存儲以供指令執行系統、裝置或設備使用或與指令執行系統、裝置或設備結合地使用的程式。機器可讀介質可以是機器可讀信號介質或機器可讀儲存介質。機器可讀介質可以包括但不限於電子的、磁性的、光學的、電磁的、紅 外的、或半導體系統、裝置或設備,或者上述內容的任何合適組合。機器可讀存儲介質的更具體示例會包括基於一個或多個線的電氣連接、可擕式電腦盤、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可擦除可程式設計唯讀記憶體(EPROM或快閃記憶體)、光纖、便捷式緊湊盤唯讀記憶體(CD-ROM)、光學儲存設備、磁儲存設備、或上述內容的任何合適組合。 In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store programs for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, red external, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include one or more wire-based electrical connections, a portable computer disk, a hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

此外,雖然採用特定次序描繪了各操作,但是這應當理解為要求這樣操作以所示出的特定次序或以順序次序執行,或者要求所有圖示的操作應被執行以取得期望的結果。在一定環境下,多工和並行處理可能是有利的。同樣地,雖然在上面論述中包含了若干具體實現細節,但是這些不應當被解釋為對本公開的範圍的限制。在單獨的實施例的上下文中描述的某些特徵還可以組合地實現在單個實現中。相反地,在單個實現的上下文中描述的各種特徵也可以單獨地或以任何合適的子組合的方式實現在多個實現中。 In addition, while operations are depicted in a particular order, this should be understood to require that such operations be performed in the particular order shown, or in sequential order, or that all illustrated operations should be performed to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while the above discussion contains several specific implementation details, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.

儘管已經採用特定於結構特徵和/或方法邏輯動作的語言描述了本主題,但是應當理解所附申請專利範圍中所限定的主題未必局限於上面描述的特定特徵或動作。相反,上面所描述的特定特徵和動作僅僅是實現申請專利範圍的示例形式。 Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing what is claimed.

300:過程 300: process

302、304、306、308:步驟 302, 304, 306, 308: steps

Claims (16)

一種用於控制虛擬物運動的方法,包括:一計算設備根據確定接收到一控制指令,將一第一虛擬物相對於一第二虛擬物的一期望運動方向與所述第一虛擬物的一前進軸方向之間的夾角設置為不等於零;該計算設備將所述第一虛擬物與所述第二虛擬物之間的一接觸區域在與所述前進軸垂直的一橫軸方向上的一阻力係數設置為不等於零;該計算設備根據確定經過一預定時間段,將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零;以及該計算設備根據確定接收到一取消控制指令,將所述接觸區域的所述阻力係數設置為等於零。 A method for controlling the movement of a virtual object, comprising: a computing device, according to determining that a control command is received, setting an angle between a desired motion direction of a first virtual object relative to a second virtual object and an advancing axis direction of the first virtual object to be not equal to zero; the computing device setting a resistance coefficient of a contact area between the first virtual object and the second virtual object in a direction of a horizontal axis perpendicular to the advancing axis to be not equal to zero; the computing device setting the angle between the expected moving direction and the advancing axis direction after a predetermined period of time according to the determination The included angle is set equal to zero; and the computing device sets the drag coefficient of the contact area equal to zero upon determining that a cancel control command has been received. 根據請求項1所述的方法,其中所述第一虛擬物是一虛擬車輛,所述虛擬車輛包括一前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中將所述期望運動方向與所述前進軸方向之間的所述夾角設置為不等於零包括:該計算設備調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為不等於零。 The method according to claim 1, wherein the first virtual object is a virtual vehicle, the virtual vehicle includes a front module, the expected direction of motion is determined by the orientation of the front module of the virtual vehicle, and wherein setting the angle between the expected direction of motion and the direction of the forward axis to be not equal to zero includes: the computing device adjusting the orientation of the front module of the virtual vehicle to set the angle not equal to zero. 根據請求項1所述的方法,其中所述第一虛擬物是一虛擬車輛,所述第二虛擬物是一虛擬地面,所述虛擬車輛包括所述接觸區域,並且其中將所述接觸區域的所述阻力係數設置為不等於零包括:該計算設備檢測所述期望運動方向與所述前進軸方向之間的所述夾角;以及 該計算設備回應於所述夾角不等於零,將所述接觸區域與所述虛擬地面在所述橫軸方向上的所述阻力係數設置為不等於零。 The method according to claim 1, wherein the first virtual object is a virtual vehicle, the second virtual object is a virtual ground, the virtual vehicle includes the contact area, and wherein setting the drag coefficient of the contact area to be not equal to zero comprises: the computing device detecting the angle between the desired direction of motion and the direction of the forward axis; and In response to the included angle being not equal to zero, the computing device sets the drag coefficient in the direction of the horizontal axis between the contact area and the virtual ground to be not equal to zero. 根據請求項1所述的方法,其中所述第一虛擬物是一虛擬車輛,所述虛擬車輛包括一前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零包括:該計算設備調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為等於零。 The method according to claim 1, wherein the first virtual object is a virtual vehicle, the virtual vehicle includes a front module, the desired direction of motion is determined by an orientation of the front module of the virtual vehicle, and wherein setting the angle between the expected direction of motion and the direction of the forward axis to be equal to zero includes: the computing device adjusting the orientation of the front module of the virtual vehicle to set the angle equal to zero. 根據請求項1所述的方法,還包括:一降速模組回應於接收到所述控制指令,以預定策略降低所述第一虛擬物的一行進速度。 According to the method described in claim 1, further comprising: a speed reduction module, in response to receiving the control command, reduces a traveling speed of the first virtual object with a predetermined strategy. 根據請求項1-5中任一項所述的方法,其中所述控制指令是一預定轉向操作指令,所述預定轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的觸摸操作;預定手勢操作;以及預定聲控操作。 The method according to any one of claims 1-5, wherein the control instruction is a predetermined steering operation instruction, and the predetermined steering operation instruction is triggered by one or more of the following operations: a touch operation of a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation. 根據請求項1-5中任一項所述的方法,其中所述取消控制指令是一取消轉向操作指令,所述取消轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的釋放操作;預定手勢操作;以及 預定聲控操作。 The method according to any one of claims 1-5, wherein the canceling control command is a canceling steering operation command, and the canceling steering operation command is triggered by one or more of the following operations: a release operation of a predetermined touch area in the user interface; a predetermined gesture operation; and Schedule voice-activated operations. 一種用於控制虛擬物運動的裝置,包括:一第一夾角設置模組,被配置為根據確定接收到一控制指令,將一第一虛擬物相對於一第二虛擬物的一期望運動方向與所述第一虛擬物的一前進軸方向之間的一夾角設置為不等於零;一第一阻力設置模組,被配置為將所述第一虛擬物與所述第二虛擬物之間的一接觸區域在與所述前進軸垂直的一橫軸方向上的一阻力係數設置為不等於零;一第二夾角設置模組,被配置為根據確定經過一預定時間段,將所述期望運動方向與所述前進軸方向之間的所述夾角設置為等於零;以及一第二阻力設置模組,被配置為根據確定接收到一取消控制指令,將所述接觸區域的所述阻力係數設置為等於零。 A device for controlling the movement of a virtual object, comprising: a first included angle setting module, configured to set an included angle between a desired movement direction of a first virtual object relative to a second virtual object and an advancing axis direction of the first virtual object to be not equal to zero according to determining that a control command is received; a first resistance setting module configured to set a resistance coefficient of a contact area between the first virtual object and the second virtual object in the direction of a horizontal axis perpendicular to the advancing axis to be not equal to zero; a second included angle setting module , configured to set the angle between the desired motion direction and the forward axis direction to be equal to zero according to the determination that a predetermined period of time has elapsed; and a second resistance setting module, configured to set the resistance coefficient of the contact area to be equal to zero according to the determination that a cancel control instruction is received. 根據請求項8所述的裝置,其中所述第一虛擬物是一虛擬車輛,所述虛擬車輛包括一前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中所述第一夾角設置模組包括:一第一朝向調整模組,被配置為調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為不等於零。 The device according to claim 8, wherein the first virtual object is a virtual vehicle, the virtual vehicle includes a front module, the desired movement direction is determined by the orientation of the front module of the virtual vehicle, and wherein the first angle setting module includes: a first orientation adjustment module configured to adjust the orientation of the front module of the virtual vehicle so as to set the angle to be not equal to zero. 根據請求項8所述的裝置,其中所述第一虛擬物是一虛擬車輛,所述第二虛擬物是一虛擬地面,所述虛擬車輛包括所述接觸區域,並且其中所述第一阻力設置模組包括:一夾角檢測模組,被配置為檢測所述期望運動方向與所述前進軸方向之間的所述夾角;以及 一阻力係數設置子模組,被配置為回應於所述夾角不等於零,將所述接觸區域與所述虛擬地面在所述橫軸方向上的所述阻力係數設置為不等於零。 The device according to claim 8, wherein the first virtual object is a virtual vehicle, the second virtual object is a virtual ground, the virtual vehicle includes the contact area, and wherein the first resistance setting module includes: an included angle detection module configured to detect the included angle between the desired motion direction and the forward axis direction; and A drag coefficient setting sub-module configured to set the drag coefficient between the contact area and the virtual ground in the direction of the transverse axis to be not equal to zero in response to the included angle being not equal to zero. 根據請求項8所述的裝置,其中所述第一虛擬物是一虛擬車輛,所述虛擬車輛包括一前部模組,所述期望運動方向由所述虛擬車輛的所述前部模組的朝向確定,並且其中所述第二夾角設置模組包括:一第二朝向調整模組,被配置為調整所述虛擬車輛的所述前部模組的朝向,以將所述夾角設置為等於零。 The device according to claim 8, wherein the first virtual object is a virtual vehicle, the virtual vehicle includes a front module, the desired movement direction is determined by the orientation of the front module of the virtual vehicle, and wherein the second included angle setting module includes: a second orientation adjustment module configured to adjust the orientation of the front module of the virtual vehicle to set the included angle to be equal to zero. 根據請求項8所述的裝置,還包括:一降速模組,被配置為回應於接收到所述控制指令,以預定策略降低所述第一虛擬物的一行進速度。 The device according to claim 8, further comprising: a speed reduction module configured to, in response to receiving the control command, reduce a traveling speed of the first virtual object with a predetermined strategy. 根據請求項8-12中任一項所述的裝置,其中所述控制指令是一預定轉向操作指令,所述預定轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的觸摸操作;預定手勢操作;以及預定聲控操作。 The device according to any one of claims 8-12, wherein the control instruction is a predetermined steering operation instruction, and the predetermined steering operation instruction is triggered by one or more of the following operations: a touch operation of a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation. 根據請求項8-12中任一項所述的裝置,其中所述取消控制指令是一取消轉向操作指令,所述取消轉向操作指令由以下操作中的一項或多項而觸發:使用者介面中的預定觸控區域的釋放操作;預定手勢操作;以及預定聲控操作。 The device according to any one of claims 8-12, wherein the canceling control command is a canceling steering operation command, and the canceling steering operation command is triggered by one or more of the following operations: a release operation of a predetermined touch area in the user interface; a predetermined gesture operation; and a predetermined voice control operation. 一種電子設備,所述電子設備包括:一個或多個處理器;以及一存儲裝置,用於存儲一個或多個程式,當所述一個或多個程式被所述一個或多個處理器執行,使得所述一個或多個處理器實現如請求項1-7中任一項所述的方法。 An electronic device, the electronic device comprising: one or more processors; and a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7. 一種電腦可讀存儲介質,其上存儲有電腦程式,所述程式被處理器執行時實現如請求項1-7任一項所述的方法。 A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of claims 1-7 is realized.
TW110114974A 2020-04-30 2021-04-26 Method, device, electronic device and computer storage medium for controlling virtual object movement TWI807310B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010367034.XA CN111617476A (en) 2020-04-30 2020-04-30 Method, device, electronic equipment and computer storage medium for controlling movement of virtual object
CN202010367034.X 2020-04-30

Publications (2)

Publication Number Publication Date
TW202146091A TW202146091A (en) 2021-12-16
TWI807310B true TWI807310B (en) 2023-07-01

Family

ID=72267162

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110114974A TWI807310B (en) 2020-04-30 2021-04-26 Method, device, electronic device and computer storage medium for controlling virtual object movement

Country Status (2)

Country Link
CN (1) CN111617476A (en)
TW (1) TWI807310B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM299017U (en) * 2006-04-14 2006-10-11 Ching-He Hung Control system of racing automobile of game machine
US20150306506A1 (en) * 2005-10-05 2015-10-29 Nintendo Co., Ltd. Game object control using pointing inputs to rotate a displayed virtual object control device
CN108744527A (en) * 2018-03-27 2018-11-06 网易(杭州)网络有限公司 Control method, device and the computer readable storage medium of virtual carrier in game
CN109513210A (en) * 2018-11-28 2019-03-26 腾讯科技(深圳)有限公司 Virtual vehicle bleach-out process, device and storage medium in virtual world

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150306506A1 (en) * 2005-10-05 2015-10-29 Nintendo Co., Ltd. Game object control using pointing inputs to rotate a displayed virtual object control device
TWM299017U (en) * 2006-04-14 2006-10-11 Ching-He Hung Control system of racing automobile of game machine
CN108744527A (en) * 2018-03-27 2018-11-06 网易(杭州)网络有限公司 Control method, device and the computer readable storage medium of virtual carrier in game
CN109513210A (en) * 2018-11-28 2019-03-26 腾讯科技(深圳)有限公司 Virtual vehicle bleach-out process, device and storage medium in virtual world

Also Published As

Publication number Publication date
TW202146091A (en) 2021-12-16
CN111617476A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US10394245B2 (en) Method and system to predict vehicle traffic behavior for autonomous vehicles to make driving decisions
US10007264B2 (en) Autonomous vehicle human driver takeover mechanism using electrodes
EP3334624B1 (en) A sideslip compensated control method for autonomous vehicles
US10162354B2 (en) Controlling error corrected planning methods for operating autonomous vehicles
Li et al. Velocity-based robust fault tolerant automatic steering control of autonomous ground vehicles via adaptive event triggered network communication
US10191493B2 (en) Vehicle position point forwarding method for autonomous vehicles
US10054945B2 (en) Method for determining command delays of autonomous vehicles
US20180086351A1 (en) System delay estimation method for autonomous vehicle control
US10272778B2 (en) Method and system for determining unit gain of speed control for autonomous driving vehicles
US20180111612A1 (en) Spring system-based change lane approach for autonomous vehicles
US20130229375A1 (en) Contact Grouping and Gesture Recognition for Surface Computing
CN110850895B (en) Path tracking method, device, equipment and storage medium
US11586202B2 (en) Automatic driving safety interaction system
CN108639061B (en) Active anti-carsickness auxiliary driving control method for automatic driving vehicle
US11084488B2 (en) Vehicle collision avoidance
CN113552888B (en) Driving track control method, device, equipment and medium applied to unmanned vehicle
CN113044036B (en) Control method and device for vehicle lane changing, electronic equipment and storage medium
JP2016210400A (en) Electronic apparatus and driver determination method of electronic apparatus
CN108854064B (en) Interaction control method and device, computer readable medium and electronic equipment
TWI807310B (en) Method, device, electronic device and computer storage medium for controlling virtual object movement
US8933896B2 (en) Pressure-based interaction for indirect touch input devices
WO2015108689A1 (en) Automatic rear-view mirror adjustments
US20170168581A1 (en) Method and Device for Controlling Operation Components Based on Somatosensory
TWI842993B (en) Method, device, electronic equipment and computer storage medium for controlling virtual objects
CN109847347B (en) Method, device, medium and electronic equipment for controlling virtual operation in game