CN110585703B - Method, device, equipment and storage medium for controlling flight of virtual aircraft - Google Patents

Method, device, equipment and storage medium for controlling flight of virtual aircraft Download PDF

Info

Publication number
CN110585703B
CN110585703B CN201910880699.8A CN201910880699A CN110585703B CN 110585703 B CN110585703 B CN 110585703B CN 201910880699 A CN201910880699 A CN 201910880699A CN 110585703 B CN110585703 B CN 110585703B
Authority
CN
China
Prior art keywords
virtual
virtual aircraft
aircraft
pitch angle
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910880699.8A
Other languages
Chinese (zh)
Other versions
CN110585703A (en
Inventor
沈晓斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910880699.8A priority Critical patent/CN110585703B/en
Publication of CN110585703A publication Critical patent/CN110585703A/en
Application granted granted Critical
Publication of CN110585703B publication Critical patent/CN110585703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • 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/837Shooting of targets

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for controlling a virtual aircraft to fly, and belongs to the technical field of computers. The embodiment of the application provides a method for controlling a virtual aircraft to fly, when the flying speed of the virtual aircraft is greater than a first speed threshold value, the virtual aircraft can be subjected to three forces of power, resistance and backswing force, so that the target pitch angle of the virtual aircraft is obtained according to the three forces, the virtual aircraft is controlled to fly according to the target pitch angle, the control on the virtual aircraft is flexible and rich, the method is not limited to changing the position of the virtual aircraft in a fixed direction dimension, and the control effect is good.

Description

Method, device, equipment and storage medium for controlling flight of virtual aircraft
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a virtual aircraft to fly.
Background
With the development of computer technology and the diversification of terminal functions, more and more games can be played on the terminal. The shooting game is a more popular game, the terminal can display a virtual scene in the interface and display a virtual aircraft in the virtual scene, such as a helicopter, an aerial gun boat, a helicopter, a fighter, a hot air balloon and the like, and the user can control the virtual aircraft to fly in the virtual scene.
At present, the method for controlling the flight of a virtual aircraft is generally only to control the virtual aircraft in a limited direction dimension, and six direction dimensions may be set: forward, backward, left, right, up and down. The terminal can determine the motion trail of the virtual aircraft according to the received control instruction, so that the virtual aircraft is controlled to fly along the motion trail.
According to the method, the virtual aircraft can be controlled only in six direction dimensions, the control mode is single, the flight condition of the virtual aircraft is not consistent with the flight condition of the aircraft in a real scene, and the effect of controlling the flight of the virtual aircraft is poor.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for controlling a virtual aircraft to fly, and can solve the problems that the flying of the virtual aircraft is not consistent with the real situation and the control effect is not good in the related technology. The technical scheme is as follows:
in one aspect, a method of controlling the flight of a virtual aircraft is provided, the method comprising:
acquiring the flight speed of a virtual aircraft in a virtual scene;
when the flying speed is higher than a first speed threshold value, acquiring a target pitch angle of the virtual aircraft according to power and resistance borne by the virtual aircraft and backswing force opposite to the power direction, wherein the backswing force is used for controlling the pitch angle of the virtual aircraft to be reduced;
and in the virtual scene, controlling the virtual aircraft to fly according to the target pitch angle.
Optionally, the method further comprises:
when the resultant force of the power, the resistance and the backswing force opposite to the power direction borne by the virtual aircraft is zero, acquiring a target pitch angle of the virtual aircraft;
and in the virtual scene, controlling the virtual aircraft to fly at a constant speed according to the target pitch angle.
Optionally, the acquiring the flight speed of the virtual aircraft in the virtual scene includes:
when a flight instruction is received, controlling the virtual aircraft to fly according to the flight instruction;
and in the flight process, executing the step of acquiring the flight speed of the virtual aircraft in the virtual scene.
Optionally, the method further comprises:
when a steering instruction is received, acquiring a target visual angle rotation angle of a virtual scene according to the steering instruction;
and in the process of controlling the visual angle to rotate the target rotation angle, displaying a virtual scene which changes along with the rotation of the visual angle.
Optionally, the method further comprises:
when a lifting instruction is received, acquiring a target height change value of a visual angle of a virtual scene according to the lifting instruction;
displaying a virtual scene that varies with a variation of the angle of view in a process of controlling the height of the angle of view to vary the target height variation value.
In another aspect, an apparatus for controlling the flight of a virtual aircraft is provided, the apparatus comprising:
the acquiring module is used for acquiring the flight speed of the virtual aircraft in the virtual scene;
the obtaining module is further configured to obtain a target pitch angle of the virtual aircraft according to power and resistance borne by the virtual aircraft and a backswing force opposite to the power direction when the flight speed is greater than a first speed threshold, where the backswing force is used to control the pitch angle of the virtual aircraft to decrease;
and the control module is used for controlling the virtual aircraft to fly according to the target pitch angle in the virtual scene.
Optionally, the obtaining module is configured to:
acquiring power borne by the virtual aircraft according to the received flight instruction;
acquiring the backswing force which is opposite to the power direction and is borne by the virtual aircraft;
acquiring resistance borne by the virtual aircraft according to the current pitch angle of the virtual aircraft, wherein the resistance is positively correlated with the current pitch angle of the virtual aircraft;
and acquiring a target pitch angle of the virtual aircraft according to the power, the resistance and the backswing force.
Optionally, the obtaining module is configured to:
acquiring a target angular acceleration of the change of the pitch angle of the virtual aircraft according to the power, the resistance and the backswing force;
acquiring a target angular velocity of the change of the pitch angle of the virtual aircraft according to the target angular acceleration;
and acquiring a target pitch angle of the virtual aircraft according to the target angular velocity.
Optionally, the obtaining module is configured to:
acquiring the resultant force of the power, the resistance and the backswing force;
and acquiring the ratio of the resultant force to the rotational inertia, and taking the ratio as the target angular acceleration of the change of the pitch angle of the virtual aircraft.
Optionally, the obtaining module is further configured to obtain a target pitch angle of the virtual aircraft when a resultant force of power, resistance, and a backswing force opposite to the power direction borne by the virtual aircraft is zero;
the control module is further configured to: and in the virtual scene, controlling the virtual aircraft to fly at a constant speed according to the target pitch angle.
Optionally, the obtaining module is configured to obtain a target pitch angle of the virtual aircraft according to power borne by the virtual aircraft when the flying speed is less than or equal to the first speed threshold.
Optionally, the obtaining module is configured to:
when the flying speed is smaller than a second speed threshold value, acquiring a target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft, wherein the second speed threshold value is smaller than the first speed threshold value;
and when the flying speed is greater than or equal to the second speed threshold and less than the first speed threshold, acquiring a target pitch angle of the virtual aircraft according to the power and resistance borne by the virtual aircraft.
Optionally, the obtaining module is configured to:
when a flight instruction is received, controlling the virtual aircraft to fly according to the flight instruction;
and in the flight process, executing the step of acquiring the flight speed of the virtual aircraft in the virtual scene.
Optionally, the obtaining module is further configured to obtain a target view rotation angle of the virtual scene according to the steering instruction when the steering instruction is received;
the device further comprises:
and the first display module is used for displaying the virtual scene which changes along with the rotation of the visual angle in the process of controlling the visual angle to rotate the target rotation angle.
Optionally, the obtaining module is further configured to obtain a target height change value of a viewing angle of the virtual scene according to the lifting instruction when the lifting instruction is received;
the device further comprises:
and the second display module is used for displaying the virtual scene which changes along with the change of the visual angle in the process of controlling the height of the visual angle to change the target height change value.
Optionally, the apparatus further comprises:
and the sending module is used for sending the flying speed, the received force and the target pitch angle of the virtual aircraft as the flying data of the virtual aircraft to a block chain system, and the block chain system stores the flying data to a block chain.
In another aspect, an electronic device is provided that includes one or more processors and one or more memories having at least one program code stored therein, the program code being loaded into and executed by the one or more processors to perform the operations performed by the above-described method of controlling the flight of a virtual aircraft.
In another aspect, a computer-readable storage medium having at least one program code stored therein is provided, the program code being loaded into and executed by a processor to perform the operations performed by the above-described method for controlling the flight of a virtual aircraft.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the embodiment of the application provides a method for controlling a virtual aircraft to fly, when the flying speed of the virtual aircraft is greater than a first speed threshold value, the virtual aircraft can be subjected to three forces of power, resistance and backswing force, so that the target pitch angle of the virtual aircraft is obtained according to the three forces, the virtual aircraft is controlled to fly according to the target pitch angle, the control on the virtual aircraft is flexible and rich, the method is not limited to changing the position of the virtual aircraft in a fixed direction dimension, and the control effect is good.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an environment for implementing a method for controlling the flight of a virtual aircraft according to an embodiment of the present disclosure;
FIG. 2 is an alternative block chain system according to an embodiment of the present invention;
FIG. 3 is an alternative block structure according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for controlling the flight of a virtual aircraft according to an embodiment of the present disclosure;
FIG. 5 is a schematic view of an interface provided by an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a direction of power applied to a virtual aircraft according to an embodiment of the present disclosure;
FIG. 7 is a schematic view of an interface provided by an embodiment of the present application;
FIG. 8 is a schematic view of an interface provided by an embodiment of the present application;
FIG. 9 is a flowchart of a method for controlling the flight of a virtual aircraft according to an embodiment of the present disclosure;
FIG. 10 is a schematic structural diagram of an apparatus for controlling the flight of a virtual aircraft according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency or limitation on the number or order of execution.
The term "at least one" in this application means one or more, and the meaning of "a plurality" means two or more, for example, a plurality of first locations means two or more first locations.
Hereinafter, terms related to the present application are explained.
Virtual scene: is a virtual scene that is displayed (or provided) by an application program when the application program runs on a terminal. The virtual scene may be a simulation environment of a real world, a semi-simulation semi-fictional virtual environment, or a pure fictional virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene, which is not limited in this application. For example, a virtual scene may include sky, land, ocean, etc., the land may include environmental elements such as deserts, cities, etc., and a user may control a virtual object to move in the virtual scene.
Virtual object: refers to a movable object in a virtual environment. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in the virtual environment. The virtual object may be an avatar in the virtual scene that is virtual to represent the user. The virtual scene may include a plurality of virtual objects, each virtual object having its own shape and volume in the virtual scene and occupying a portion of the space in the virtual scene. Alternatively, the virtual Character may be a Character controlled by an operation on the client, an Artificial Intelligence (AI) set in the virtual environment battle by training, or a Non-Player Character (NPC) set in the virtual environment battle. Optionally, the virtual character is a virtual character that competes in a virtual environment. Optionally, the number of virtual characters in the virtual environment battle may be preset, or may be dynamically determined according to the number of clients joining the battle.
Taking a shooting game as an example, the user may control the virtual object to freely fall, glide or open a parachute to fall in the sky of the virtual scene, to run, jump, crawl, bow to move ahead on land, or to swim, float or dive in the sea, or the like, and of course, the user may also control the virtual object to move in the virtual scene by riding a virtual vehicle, which is only exemplified here, but the embodiment of the present invention is not limited to this. The user can also control the virtual object to fight with other virtual objects through weapons, the weapons can be cold weapons or hot weapons, and the application is not specifically limited to this.
Virtual aircraft: a virtual vehicle capable of flying in a virtual scene is also referred to as an aerial vehicle, a flying device or a flying vehicle. For example, the virtual aircraft may be a helicopter, an airgun boat, a helicopter, a fighter, etc. Taking a helicopter as an example, the helicopter is an aircraft flying by a propeller and a tail wing, and the helicopter can be maneuvered to fly at low altitude, low speed and unchanged nose direction.
Hereinafter, a system architecture according to the present application will be described.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment of a method for controlling a virtual aircraft to fly according to an embodiment of the present application. The implementation environment includes: a first terminal 120, a server 140, and a second terminal 160.
The first terminal 120 is installed and operated with an application program supporting a virtual scene. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, a First-person Shooting Game (FPS), a Multiplayer Online Battle Arena Game (MOBA) and a Multiplayer gun Battle survival Game. The first terminal 120 is a terminal used by a first user, and the first user uses the first terminal 120 to operate a first virtual object located in a virtual scene for activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the first virtual object is a first virtual character, such as a simulated persona or an animated persona.
The first terminal 120 is connected to the server 140 through a wireless network or a wired network. The second terminal 160 is connected to the server 140 through a wireless network or a wired network.
The server 140 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server 140 is used to provide background services for applications that support virtual scenarios. Alternatively, the server 140 undertakes primary computational work and the first and second terminals 120, 160 undertake secondary computational work; alternatively, the server 140 undertakes the secondary computing work and the first terminal 120 and the second terminal 160 undertakes the primary computing work; alternatively, the server 140, the first terminal 120, and the second terminal 160 perform cooperative computing by using a distributed computing architecture.
The second terminal 160 is installed and operated with an application program supporting a virtual scene. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS, an MOBA and a multi-player gun battle type survival game. The second terminal 160 is a terminal used by a second user, and the second user uses the second terminal 160 to operate a second virtual object located in the virtual scene for activities, including but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the second virtual object is a second virtual character, such as a simulated persona or an animated persona.
Optionally, the first virtual object controlled by the first terminal 120 and the second virtual object controlled by the second terminal 160 are in the same virtual scene. In some embodiments, the first virtual object and the second virtual object may be in an adversary relationship, for example, the first virtual object and the second virtual object may belong to different teams and organizations, and the first terminal 120 may control the first virtual object to attack the second virtual object. In an exemplary scenario, the first terminal 120 may control the virtual vehicle to carry the first virtual object and fly to an area where the second virtual object is located, and control the virtual vehicle to launch a missile to the second virtual object, so as to perform fire striking on the second virtual object, and then to strike and kill the second virtual object. In other embodiments, the first virtual object and the second virtual object may be in a teammate relationship, for example, the first virtual character and the second virtual character may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights.
Alternatively, the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of application of different operating system platforms. The first terminal 120 may generally refer to one of a plurality of terminals, and the second terminal 160 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 120 and the second terminal 160. The device types of the first terminal 120 and the second terminal 160 are the same or different, and include: at least one of a smart phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a laptop portable computer, and a desktop computer. For example, the first terminal 120 and the second terminal 160 may be smart phones, or other handheld portable gaming devices. The following embodiments are illustrated with the terminal comprising a smartphone.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
The following describes the blockchain system, the block generation process in the blockchain system, and the consensus process.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
For the blockchain system, referring To fig. 2, fig. 2 is an optional structural schematic diagram of the blockchain system provided in the embodiment of the present invention, and the blockchain system is formed by a plurality of nodes (any form of computing devices in an access network, such as a server and a user terminal) and a client, and a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). Any machine, such as a server, a terminal, can join to become a node, which includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 2, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the electronic money remaining in the electronic money address.
And 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 3, fig. 3 is an optional schematic diagram of a Block Structure (Block Structure) according to an embodiment of the present invention, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
The method flow according to the present application will be described below.
Referring to fig. 4, fig. 4 is a flowchart of a method for controlling a flight of a virtual aircraft according to an embodiment of the present application. The embodiment is exemplified by applying the method to a terminal, which may be the first terminal 120 shown in fig. 1, and the method includes:
401. when the terminal receives the creation instruction, the terminal creates the virtual aircraft.
The creation instruction is used for instructing the terminal to create the virtual aircraft. In some embodiments, the creation instruction may be triggered by a user operation. For example, the terminal may display a call control in the virtual scene, and when a user wants to call the virtual aircraft, the terminal may perform touch operation on the call control, and then receive a trigger signal to the call control, trigger a creation instruction, and create the virtual aircraft. The calling control is used for calling the virtual aircraft to enter the virtual scene, and the form of the calling control can be a button displayed in the virtual scene in a suspension mode.
402. The terminal displays the virtual aircraft in the virtual scene.
The terminal can obtain the initial position of the virtual aircraft from the virtual scene, and can display the virtual aircraft at the initial position, so that the display effect of the virtual aircraft entering the field is achieved, and the function of calling out the virtual aircraft by a user is achieved.
The starting position may be in the sky, the ground or the ocean of the virtual scene, and the embodiment does not limit the starting position. The starting location may also be referred to as a Take-Off and Landing spot (VTOL spot) or a departure location. In some embodiments, a position may be pre-selected in the virtual scene, configured as a starting position of the virtual vehicle, and the virtual vehicle may be displayed at the pre-configured starting position to achieve the effect that the virtual vehicle generates at a fixed location. In other embodiments, the terminal may randomly generate a position, use the position as a starting position of the virtual aircraft, and display the virtual aircraft at the randomly generated starting position, thereby achieving the effect that the system randomly selects the generation point of the virtual aircraft. Alternatively, the starting position may be located at a preset altitude in the sky of the virtual scene, thereby achieving the effect of the virtual aircraft being generated at a fixed altitude.
In the above step 401 and step 402, through the creation instruction, the virtual aircraft may also be obtained in a manner other than the above manner in the process of creating and displaying the virtual aircraft, for example, the virtual aircraft may be a virtual resource in a virtual scene, the terminal may display the virtual aircraft at a target position in the virtual scene, and the user may control a virtual object to drive the virtual aircraft, which manner is specifically adopted by the embodiment of the present application is not limited.
403. And when a flight instruction is received, the terminal controls the virtual aircraft to fly according to the flight instruction.
The terminal can display a flight control in a user graphical interface, and a user can perform touch operation on the flight control to trigger the terminal to receive a flight instruction so as to control the virtual aircraft to fly.
The flight command may include flight commands in multiple directions, such as forward, reverse, left, right, up, down, and the like. The terminal can control the virtual aircraft to fly towards the direction indicated by the flight instruction according to the flight instruction.
404. In the flight process, the terminal acquires the flight speed of the virtual aircraft in the virtual scene, and according to the difference of the flight speed, the terminal executes the following steps 405, 406 or 407.
In the flight process, the flying speed of this virtual aircraft is different, the power that this virtual aircraft received also can be different, for example, when the flying speed of this virtual aircraft is less, this virtual aircraft can only be influenced by power, when the flying speed of this virtual aircraft is slightly bigger, this virtual aircraft not only receives power influence, can also receive the influence of power, when the flying speed of this virtual aircraft is greater than a definite value, this virtual aircraft except power, resistance, can also receive a backswing power, this backswing power is used for controlling the pitch angle of this virtual aircraft and reduces. It is understood that the greater the pitch angle of the virtual vehicle, the greater the flight speed experienced by the virtual vehicle, i.e., the backswing force is opposite to the power direction of the virtual vehicle.
The steps 403 and 404 are processes of acquiring the flying speed of the virtual aircraft in the virtual scene, and the above description is only given by taking the acquiring the flying speed in the flying process as an example, and when the virtual aircraft initially flies, the terminal may also acquire the flying speed, but the flying speed is zero. Of course, in a possible implementation manner, when the flight speed of the virtual aircraft is zero, two situations may be included, in one situation, the virtual aircraft is located on the ground, and in another situation, the virtual aircraft may hover in the air, which is not limited in this embodiment of the present application.
405. And when the flying speed is greater than a first speed threshold value, the terminal acquires a target pitch angle of the virtual aircraft according to the power and resistance borne by the virtual aircraft and the backswing force opposite to the power direction.
Wherein the backswing force is used to control the pitch angle reduction of the virtual aircraft.
When the flying speed is higher, a backswing force can be applied to the virtual aircraft to control the flying speed of the virtual aircraft, so that the virtual aircraft gradually adjusts the pitch angle of the virtual aircraft and then adjusts the virtual aircraft to fly at a constant speed.
The pitch angle of the virtual aircraft may refer to an included angle between the virtual aircraft and a horizontal plane, that is, a forward tilt angle of the virtual aircraft. It will be appreciated that the greater the pitch angle of the virtual vehicle, the greater the airspeed of the virtual vehicle.
Specifically, the step 405 may be implemented by the following steps one to four:
step one, the terminal can obtain the power borne by the virtual aircraft according to the received flight instruction.
And when the user performs forward operation, the terminal can obtain the power borne by the virtual aircraft according to the flight instruction triggered by the forward operation. For example, as shown in fig. 5, the terminal controls the virtual aircraft to fly in a virtual scene, and the viewing direction of the virtual scene is the flying direction of the virtual aircraft. As shown in fig. 6, the direction of the power is the direction for controlling the front part of the virtual aircraft to turn from top to bottom, and according to the right-hand rule, the direction of the moment of the power is horizontal to the left. Where moment is the tendency of an object to rotate about a rotational axis or pivot by an applied force, in newton-meters.
And step two, the terminal can acquire the backswing force which is opposite to the power direction and is borne by the virtual aircraft.
The backswing force can be set by a related technician as required, and is not limited in the embodiment of the application. For example, the direction of the swinging back force is the direction for controlling the front part of the virtual aircraft to turn from bottom to top in fig. 6. According to the right hand rule, the torque direction of the power is horizontal to the right.
And step three, the terminal can obtain the resistance borne by the virtual aircraft according to the current pitch angle of the virtual aircraft, and the resistance is positively correlated with the current pitch angle of the virtual aircraft.
The moment of resistance is in a direction opposite to the forward roll direction of the virtual aircraft. In one possible implementation, the terminal may obtain a product of the current pitch angle and a target coefficient, and use the product as the resistance.
And step four, the terminal can obtain the target pitch angle of the virtual aircraft according to the power, the resistance and the backswing force.
After the terminal acquires each force, the change condition of the pitch angle of the virtual aircraft can be determined according to the resultant force of the plurality of forces, so that the target pitch angle is acquired.
In a possible implementation manner, in the fourth step, the terminal may obtain a target angular acceleration of the change of the pitch angle of the virtual aircraft according to the power, the resistance, and the backswing force, and then obtain a target angular velocity of the change of the pitch angle of the virtual aircraft according to the target angular acceleration, so as to obtain the target pitch angle of the virtual aircraft according to the target angular velocity.
When the terminal acquires the target angular acceleration, the target angular acceleration can be acquired according to the resultant force of the three forces. The three forces are each a vector having a magnitude and a direction, the target angular acceleration is also a vector having a magnitude and a direction, and the direction of the target angular acceleration includes the direction of the downward or upward roll of the front of the virtual vehicle.
Specifically, the terminal may obtain a resultant force of the power, the resistance force, and the backswing force, obtain a ratio of the resultant force to the moment of inertia, and use the ratio as a target angular acceleration of the change of the pitch angle of the virtual aircraft. After the target angular acceleration is obtained, the terminal can obtain the micro-integral of the target angular acceleration to obtain the target angular velocity. Similarly, the terminal obtains the calculus of the target angular velocity to obtain the target pitch angle.
406. And when the flying speed is smaller than a second speed threshold value, the terminal acquires a target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft, wherein the second speed threshold value is smaller than the first speed threshold value.
The second speed threshold may be set by a person skilled in the art as needed, and is not limited in this embodiment of the application. In the embodiment of the application, when the flying speed is low, the resistance borne by the virtual aircraft can be ignored, so that the terminal can obtain the target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft.
The acquisition source of the power may be the same as the content shown in step 405, and the process of acquiring the target pitch angle by the terminal according to the power may also be the same as the content shown in step 405, and the target angular acceleration may be acquired first, and then the angular velocity may be acquired, but the resistance and the backswing force are both zero.
407. And when the flying speed is greater than or equal to the second speed threshold and less than the first speed threshold, the terminal acquires a target pitch angle of the virtual aircraft according to the power and the resistance borne by the virtual aircraft.
When the flying speed is slightly larger, the resistance borne by the virtual aircraft needs to be considered, but the flying speed is not larger than the first speed threshold value, so that the backswing force does not need to be considered, and the terminal can obtain the target pitch angle according to the power and the resistance. The acquisition source of the power and the resistance may be the same as the content shown in the step 405, and the process of acquiring the target pitch angle by the terminal according to the power and the resistance may also be the same as the content shown in the step 405, and the target angular acceleration may be acquired first, and then the angular velocity may be acquired, but the backswing force is zero.
The step 406 and the step 407 are processes of obtaining the target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft when the flying speed is less than or equal to the first speed threshold, and only a second speed threshold is set in the processes, and there is a possibility that: when the flying speed is less than or equal to the first speed threshold value, the terminal directly obtains the target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft, and the virtual aircraft is not influenced by the resistance at the moment. The embodiments of the present application do not limit this.
408. And the terminal controls the virtual aircraft to fly according to the target pitch angle in the virtual scene.
Through any one of the above steps 405, 406 or 407, after the terminal acquires the target pitch angle, the virtual aircraft may be controlled to fly according to the target pitch angle. For example, as shown in fig. 7, in step 205, when the virtual vehicle is subjected to a backswing force, the pitch angle of the virtual vehicle is decreased, and the virtual scene is better displayed. As shown in fig. 8, when the virtual vehicle is not subjected to the backswing force, the pitch angle of the virtual vehicle is large, and the virtual vehicle tilts forward severely.
In a possible implementation manner, when the virtual aircraft is subjected to three forces, the three forces may balance the stress on the virtual aircraft, so that the pitch angle of the virtual aircraft does not change, and the flying speed can be stabilized. Specifically, when the resultant force of the power, the resistance and the backswing force opposite to the power direction borne by the virtual aircraft is zero, the terminal acquires a target pitch angle of the virtual aircraft, and in the virtual scene, the virtual aircraft is controlled to fly at a constant speed according to the target pitch angle.
The three conditions of 205, 206, 207 and 208 are analyzed, and the change of the pitch angle of the virtual aircraft is explained by the process that the flying speed of the virtual aircraft changes from small to large.
In a specific example, as shown in fig. 9, taking the virtual aircraft as a helicopter as an example, a user controls the helicopter to move forward, the terminal may control the helicopter to move forward, a horizontal leftward power moment M1(t) is applied to a nose of the helicopter, t is time, based on the power, the terminal may control a forward tilt angle of the helicopter to gradually increase, that is, a pitch angle to gradually increase, and when a flight speed of the helicopter reaches a certain value, a horizontal rightward backswing moment M2(t) is applied to the helicopter, and the terminal may control the forward tilt angle of the helicopter to gradually decrease, that is, the pitch angle to gradually decrease. The resistance is not shown in the above process, but the resistance may be calculated as a moment in the calculation. M1, M2, Mf, below, represent three forces, respectively, so that when the helicopter is three-force balanced, i.e., M1 is M2+ Mf, the terminal can control the forward tilt angle of the helicopter to remain constant and steady forward.
In one specific example, M1For the power moment received by the helicopter, M2For the horizontal backswing moment received by the helicopter, x is a second speed threshold, when the speed of the helicopter reaches x, the helicopter is subjected to resistance which is proportional to the current pitch angle theta, MfK θ. Where k is the target coefficient and is a positive number. v' is a first speed threshold.
For example, it takes t ' for the helicopter to reach v ', t < t ', i.e. the helicopter is not subjected to a backswing force when the speed of the helicopter is less than the first speed threshold. Angular acceleration of helicopter is alphatCan be obtained by the following formula one:
the formula I is as follows:
Figure BDA0002205792700000151
wherein,Iis the moment of inertia. ThetatIs the pitch angle at time t.
When t is t', the angular velocity ω of the helicoptert′Can be obtained by the following formula two:
the formula II is as follows:
Figure BDA0002205792700000152
the pitch angle of the helicopter can be obtained by the following formula three:
the formula III is as follows:
Figure BDA0002205792700000153
when t > t', the angular acceleration alpha of the helicoptertCan be obtained by the following formula four:
the formula four is as follows:
Figure BDA0002205792700000154
angular velocity omega of helicoptert′Can be obtained by the following formula five:
the formula five is as follows:
Figure BDA0002205792700000155
the pitch angle of the helicopter can be obtained by the following formula six:
formula six:
Figure BDA0002205792700000161
when M is1=M2At + k θ ", the helicopter is balanced by three forces in the horizontal direction and flies with the forward tilt angle θ".
Wherein, ω is0At an initial angular velocity, θ0For initial pitch, if the helicopter is flying from rest, the initial angular velocity and initial pitch mayThe initial angular velocity and the initial pitch angle are 0, and of course, those skilled in the art may set the initial angular velocity and the initial pitch angle according to the requirement, which is not limited by the embodiment of the present application.
In one possible implementation, in addition to changing the pitch angle of the virtual vehicle through the above-described operations, the virtual vehicle may also be steered, which may be accomplished through a perspective turn of the virtual scene. Specifically, when a steering instruction is received, the terminal may acquire a target view angle rotation angle of the virtual scene according to the steering instruction. And the terminal displays the virtual scene which changes along with the rotation of the visual angle in the process of controlling the visual angle to rotate the target rotation angle.
In one possible implementation, in addition to changing the pitch angle of the virtual vehicle through the above-described operations, the virtual vehicle may ascend or descend, and the ascent and descent of the virtual vehicle may be achieved through an altitude change of the perspective of the virtual scene. Specifically, when a lifting instruction is received, the terminal may obtain a target height change value of a viewing angle of the virtual scene according to the lifting instruction, and the terminal displays the virtual scene that changes with a change of the viewing angle in a process of controlling the height of the viewing angle to change the target height change value.
In one possible embodiment, the method for controlling the flight of the virtual vehicle may also be applied to a blockchain system, and after the steps 405, 406, and 407, the terminal may send the flight speed, the received force, and the target pitch angle of the virtual vehicle as flight data of the virtual vehicle to the blockchain system, and the blockchain system stores the flight data to the blockchain.
Optionally, after receiving the flight data, the node device of the blockchain system may further perform the same steps as the above steps 405, 406, and 407, check the flight data to determine whether the flight data determined by the terminal is correct, and store the flight data onto the blockchain when the flight data passes the check.
The node device may generate a block based on the flight data, broadcast the block to other node devices, and add the block to the blockchain when the block passes through the consensus of the blockchain system.
The embodiment of the application provides a method for controlling a virtual aircraft to fly, when the flying speed of the virtual aircraft is greater than a first speed threshold value, the virtual aircraft can be subjected to three forces of power, resistance and backswing force, so that the target pitch angle of the virtual aircraft is obtained according to the three forces, the virtual aircraft is controlled to fly according to the target pitch angle, the control on the virtual aircraft is flexible and rich, the method is not limited to changing the position of the virtual aircraft in a fixed direction dimension, and the control effect is good.
Fig. 10 is a schematic structural diagram of an apparatus for controlling the flight of a virtual aircraft according to an embodiment of the present application. Referring to fig. 10, the apparatus includes:
an obtaining module 1001, configured to obtain a flight speed of a virtual aircraft in a virtual scene;
the obtaining module 1001 is further configured to obtain a target pitch angle of the virtual aircraft according to power and resistance borne by the virtual aircraft and a backswing force opposite to the power direction when the flight speed is greater than a first speed threshold, where the backswing force is used to control the pitch angle of the virtual aircraft to decrease;
and a control module 1002, configured to control the virtual aircraft to fly according to the target pitch angle in the virtual scene.
Optionally, the obtaining module 1001 is configured to:
acquiring the power borne by the virtual aircraft according to the received flight instruction;
acquiring the backswing force which is opposite to the power direction and is borne by the virtual aircraft;
acquiring resistance borne by the virtual aircraft according to the current pitch angle of the virtual aircraft, wherein the resistance is positively correlated with the current pitch angle of the virtual aircraft;
and acquiring a target pitch angle of the virtual aircraft according to the power, the resistance and the backswing force.
Optionally, the obtaining module 1001 is configured to:
acquiring target angular acceleration of the change of the pitch angle of the virtual aircraft according to the power, the resistance and the backswing force;
acquiring a target angular velocity of the change of the pitch angle of the virtual aircraft according to the target angular acceleration;
and acquiring a target pitch angle of the virtual aircraft according to the target angular velocity.
Optionally, the obtaining module 1001 is configured to:
acquiring the resultant force of the power, the resistance and the backswing force;
and acquiring the ratio of the resultant force to the rotational inertia, and taking the ratio as the target angular acceleration of the change of the pitch angle of the virtual aircraft.
Optionally, the obtaining module 1001 is further configured to obtain a target pitch angle of the virtual aircraft when a resultant force of the power, the resistance, and the backswing force opposite to the power direction borne by the virtual aircraft is zero;
the control module 1002 is further configured to: and in the virtual scene, controlling the virtual aircraft to fly at a constant speed according to the target pitch angle.
Optionally, the obtaining module 1001 is configured to obtain the target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft when the flying speed is less than or equal to the first speed threshold.
Optionally, the obtaining module 1001 is configured to:
when the flying speed is smaller than a second speed threshold value, acquiring a target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft, wherein the second speed threshold value is smaller than the first speed threshold value;
and when the flying speed is greater than or equal to the second speed threshold and less than the first speed threshold, acquiring a target pitch angle of the virtual aircraft according to the power and the resistance borne by the virtual aircraft.
Optionally, the obtaining module 1001 is configured to:
when a flight instruction is received, controlling the virtual aircraft to fly according to the flight instruction;
and during the flight process, executing the step of acquiring the flight speed of the virtual aircraft in the virtual scene.
Optionally, the obtaining module 1001 is further configured to, when receiving a steering instruction, obtain a target view rotation angle of the virtual scene according to the steering instruction;
the device also includes:
and the first display module is used for displaying the virtual scene which changes along with the rotation of the visual angle in the process of controlling the visual angle to rotate the target rotation angle.
Optionally, the obtaining module 1001 is further configured to, when receiving a lifting instruction, obtain a target height change value of a viewing angle of the virtual scene according to the lifting instruction;
the device also includes:
and the second display module is used for displaying the virtual scene which changes along with the change of the visual angle in the process of controlling the height of the visual angle to change the target height change value.
Optionally, the apparatus further comprises:
and the sending module is used for sending the flying speed, the borne force and the target pitch angle of the virtual aircraft as the flying data of the virtual aircraft to the block chain system, and the block chain system stores the flying data to the block chain.
The embodiment of the application provides a device of control virtual aircraft flight, when the airspeed of virtual aircraft is greater than first speed threshold value, virtual aircraft can receive power, resistance and the three power of backswing power, thereby obtain the target pitch angle of this virtual aircraft according to these three power, thereby control this virtual aircraft and fly according to this target pitch angle, control to this virtual aircraft is nimble abundant, and be not limited to the position that changes virtual aircraft in fixed direction dimension, control effectually.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: in the device for controlling the flight of the virtual aircraft provided in the above embodiment, when the virtual aircraft is controlled to fly, only the division of the functional modules is used for illustration, and in practical application, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device for controlling the flight of the virtual aircraft is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for controlling the virtual aircraft to fly and the method for controlling the virtual aircraft to fly provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 11 is a schematic structural diagram of an electronic device 1100 according to an embodiment of the present invention, where the electronic device 1100 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the one or more memories 1102 store at least one instruction, and the at least one instruction is loaded and executed by the one or more processors 1101 to implement the method for controlling the flight of the virtual aircraft according to the above-described method embodiments. Of course, the electronic device 1100 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the electronic device 1100 may also include other components for implementing device functions, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium, such as a memory including program code executable by a processor, is also provided to perform the method of controlling the flight of a virtual aircraft of the above embodiments. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It should be understood that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.

Claims (10)

1. A method of controlling the flight of a virtual aircraft, the method comprising:
acquiring the flight speed of a virtual aircraft in a virtual scene, wherein the virtual aircraft is a helicopter, and the helicopter is an aircraft flying by virtue of a propeller and a tail wing;
when the flying speed is higher than a first speed threshold value, acquiring a target pitch angle of the virtual aircraft according to power, resistance and backswing force opposite to the power direction, wherein the backswing force is used for controlling the pitch angle of the virtual aircraft to be reduced, the direction of the backswing force is the direction for controlling the aircraft nose of the virtual aircraft to turn from bottom to top, the direction of the power is the direction for controlling the aircraft nose of the virtual aircraft to turn from top to bottom, and the direction of the moment of the power is the direction from left to the horizontal at the aircraft nose of the virtual aircraft;
and in the virtual scene, controlling the virtual aircraft to fly according to the target pitch angle.
2. The method of claim 1, wherein obtaining the target pitch angle of the virtual aircraft according to the power, the drag and the backswing force opposite to the power direction, comprises:
acquiring power borne by the virtual aircraft according to the received flight instruction;
acquiring the backswing force which is opposite to the power direction and is borne by the virtual aircraft;
acquiring resistance borne by the virtual aircraft according to the current pitch angle of the virtual aircraft, wherein the resistance is positively correlated with the current pitch angle of the virtual aircraft;
and acquiring a target pitch angle of the virtual aircraft according to the power, the resistance and the backswing force.
3. The method of claim 2, wherein said obtaining a target pitch angle of the virtual aircraft from the power, the drag, and the backswing force comprises:
acquiring a target angular acceleration of the change of the pitch angle of the virtual aircraft according to the power, the resistance and the backswing force;
acquiring a target angular velocity of the change of the pitch angle of the virtual aircraft according to the target angular acceleration;
and acquiring a target pitch angle of the virtual aircraft according to the target angular velocity.
4. The method of claim 3, wherein said obtaining a target angular acceleration of the change in pitch angle of the virtual aircraft based on the power, the drag, and the backswing force comprises:
acquiring the resultant force of the power, the resistance and the backswing force;
and acquiring the ratio of the resultant force to the rotational inertia, and taking the ratio as the target angular acceleration of the change of the pitch angle of the virtual aircraft.
5. The method of claim 1, further comprising:
and when the flying speed is less than or equal to the first speed threshold value, acquiring a target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft.
6. The method of claim 5, wherein obtaining the target pitch angle of the virtual aircraft according to the power experienced by the virtual aircraft when the flying speed is less than or equal to the first speed threshold comprises:
when the flying speed is smaller than a second speed threshold value, acquiring a target pitch angle of the virtual aircraft according to the power borne by the virtual aircraft, wherein the second speed threshold value is smaller than the first speed threshold value;
and when the flying speed is greater than or equal to the second speed threshold and less than the first speed threshold, acquiring a target pitch angle of the virtual aircraft according to the power and resistance borne by the virtual aircraft.
7. The method of claim 1, further comprising:
and sending the flying speed, the received force and the target pitch angle of the virtual aircraft as the flying data of the virtual aircraft to a block chain system, and storing the flying data onto the block chain by the block chain system.
8. An apparatus for controlling the flight of a virtual aircraft, the apparatus comprising:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring the flight speed of a virtual aircraft in a virtual scene, the virtual aircraft is a helicopter, and the helicopter is an aircraft flying by depending on a propeller and a tail wing;
the obtaining module is further configured to obtain a target pitch angle of the virtual aircraft according to power and resistance received by the virtual aircraft and a backswing force opposite to the power direction when the flight speed is greater than a first speed threshold, where the backswing force is used to control the pitch angle of the virtual aircraft to decrease, the backswing force is in a direction in which a head of the virtual aircraft is controlled to turn from bottom to top, the power direction is in a direction in which the head of the virtual aircraft is controlled to turn from top to bottom, and the power torque direction is in a direction in which the head of the virtual aircraft is horizontally left;
and the control module is used for controlling the virtual aircraft to fly according to the target pitch angle in the virtual scene.
9. An electronic device, comprising one or more processors and one or more memories having at least one program code stored therein, the program code being loaded and executed by the one or more processors to perform the operations performed by the method of controlling the flight of a virtual aircraft of any of claims 1 to 7.
10. A computer-readable storage medium, having stored therein at least one program code, the program code being loaded into and executed by a processor to perform operations performed by a method of controlling the flight of a virtual aircraft according to any one of claims 1 to 7.
CN201910880699.8A 2019-09-18 2019-09-18 Method, device, equipment and storage medium for controlling flight of virtual aircraft Active CN110585703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910880699.8A CN110585703B (en) 2019-09-18 2019-09-18 Method, device, equipment and storage medium for controlling flight of virtual aircraft

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910880699.8A CN110585703B (en) 2019-09-18 2019-09-18 Method, device, equipment and storage medium for controlling flight of virtual aircraft

Publications (2)

Publication Number Publication Date
CN110585703A CN110585703A (en) 2019-12-20
CN110585703B true CN110585703B (en) 2021-03-19

Family

ID=68860587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910880699.8A Active CN110585703B (en) 2019-09-18 2019-09-18 Method, device, equipment and storage medium for controlling flight of virtual aircraft

Country Status (1)

Country Link
CN (1) CN110585703B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103144781A (en) * 2012-12-21 2013-06-12 南京航空航天大学 Method for determining transient process switching corridor of tilt rotor unmanned aircraft
CN109018422A (en) * 2018-07-10 2018-12-18 南京航空航天大学 Determine revolving speed to vert corridor calculation method with the quadrotor that verts of feathering

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195626B1 (en) * 1998-06-19 2001-02-27 Microsoft Corporation Heightened realism for computer-controlled units in real-time simulation
US8734250B2 (en) * 2012-10-05 2014-05-27 Wargaming.Net Llp Control of vehicles in three dimensional space
CN106096091B (en) * 2016-05-31 2019-02-12 中国航空工业集团公司西安飞机设计研究所 A kind of airplane motion analogy method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103144781A (en) * 2012-12-21 2013-06-12 南京航空航天大学 Method for determining transient process switching corridor of tilt rotor unmanned aircraft
CN109018422A (en) * 2018-07-10 2018-12-18 南京航空航天大学 Determine revolving speed to vert corridor calculation method with the quadrotor that verts of feathering

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
横列式刚性旋翼直升机飞行动力学研究;张凯;《工程科技Ⅱ辑》;20130215;全文 *
直升机怎么控制前倾角度;玉娇要加油;《https://iask.sina.com.cn/b/1SZ8wai1ErV7.html》;20190218;全文 *

Also Published As

Publication number Publication date
CN110585703A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
EP3595789B1 (en) Virtual reality system using an actor and director model
WO2021213026A1 (en) Virtual object control method and apparatus, and device and storage medium
JP2024514752A (en) Method and device for controlling summoned objects in a virtual scene, electronic equipment and computer program
CN110732135B (en) Virtual scene display method and device, electronic equipment and storage medium
CN110585707B (en) Visual field picture display method, device, equipment and storage medium
CN110496394B (en) Method, device, equipment and medium for controlling NPC (neural network controller) based on artificial intelligence
CN110507990B (en) Interaction method, device, terminal and storage medium based on virtual aircraft
JP7492611B2 (en) Method, apparatus, computer device and computer program for processing data in a virtual scene
CN112691366B (en) Virtual prop display method, device, equipment and medium
CN111921198B (en) Control method, device and equipment of virtual prop and computer readable storage medium
EP2862112B1 (en) Anti-cheating method and system for online games
JP2024522972A (en) Method, device, equipment and computer program for rendering video frames
WO2022121503A1 (en) Method and apparatus for displaying pre-order props, and device, medium and product
WO2022227958A1 (en) Virtual carrier display method and apparatus, device, and storage medium
CN112717386B (en) Method, device, equipment and medium for displaying checkpoint picture
KR20210151856A (en) Virtual environment display method and apparatus, device, and storage medium
JP2024522473A (en) Virtual scene-based beam display method and its device, equipment, and computer program
CN113769391B (en) Method, device, equipment and medium for acquiring skills in virtual environment
WO2022127197A1 (en) Method and system for converting speech into text, and device and medium
US10814225B2 (en) Game with an area of effect for structures impacting a surrounding area
CN111265876B (en) Method, device, equipment and storage medium for using props in virtual environment
CN110585703B (en) Method, device, equipment and storage medium for controlling flight of virtual aircraft
CN114307150B (en) Method, device, equipment, medium and program product for interaction between virtual objects
CN113274724A (en) Virtual object control method, device, equipment and computer readable storage medium
CN112843682B (en) Data synchronization method, device, equipment and storage medium

Legal Events

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