CN117122902A - Vibration interaction method, device, equipment and storage medium - Google Patents

Vibration interaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN117122902A
CN117122902A CN202311391415.1A CN202311391415A CN117122902A CN 117122902 A CN117122902 A CN 117122902A CN 202311391415 A CN202311391415 A CN 202311391415A CN 117122902 A CN117122902 A CN 117122902A
Authority
CN
China
Prior art keywords
vibration
virtual vehicle
target virtual
running
accident
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.)
Granted
Application number
CN202311391415.1A
Other languages
Chinese (zh)
Other versions
CN117122902B (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 CN202311391415.1A priority Critical patent/CN117122902B/en
Publication of CN117122902A publication Critical patent/CN117122902A/en
Application granted granted Critical
Publication of CN117122902B publication Critical patent/CN117122902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • 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/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)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the application discloses a vibration interaction method, a vibration interaction device, vibration interaction equipment and a storage medium, which can be applied to the technical field of computers. The method comprises the following steps: in the running process of the target virtual vehicle, determining at least one potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment, and determining a first running accident with the highest accident priority from the at least one potential running accident; generating first vibration information for carrying out vibration early warning on a first driving accident according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment; and according to the first vibration information, the vibration device is instructed to perform vibration early warning on the first driving accident after the first moment. By adopting the embodiment of the application, the potential driving accidents can be subjected to vibration early warning in a vibration mode, and the applicability is high.

Description

Vibration interaction method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a vibration interaction method, device, apparatus, and storage medium.
Background
Vibration is widely used as a new output medium in various game fields (such as racing games or other virtual game scenes where virtual vehicle running pictures exist). At present, vibration is used as a new interaction mode, the design of the related vibration effect is more complex and diversified, and how to effectively combine the vibration and the virtual vehicle running process is a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a vibration interaction method, a vibration interaction device, vibration interaction equipment and a storage medium, which can perform vibration early warning on potential driving accidents of a virtual vehicle through vibration and have high applicability.
In one aspect, an embodiment of the present application provides a vibration interaction method, including:
in the running process of a target virtual vehicle, determining at least one potential running accident associated with the target virtual vehicle in a virtual running scene at a first moment according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment, and determining a first running accident with highest accident priority from the at least one potential running accident;
generating first vibration information for performing vibration early warning on the first driving accident according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment;
And according to the first vibration information, the vibration device is instructed to perform vibration early warning on the first driving accident after the first moment.
In another aspect, an embodiment of the present application provides a vibration interaction device, including:
the information analysis module is used for determining at least one potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment in the running process of the target virtual vehicle, and determining a first running accident with the highest accident priority from the at least one potential running accident;
the information generation module is used for generating first vibration information for carrying out vibration early warning on the first driving accident according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment;
and the vibration indication module is used for indicating the vibration device to perform vibration early warning on the first driving accident after the first moment according to the first vibration information.
In another aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the processor and the memory are connected to each other;
The memory is used for storing a computer program;
the processor is used for executing the vibration interaction method provided by the embodiment of the application when the computer program is called.
In another aspect, embodiments of the present application provide a computer readable storage medium storing a computer program that is executed by a processor to implement the vibration interaction method provided by the embodiments of the present application.
In another aspect, an embodiment of the present application provides a computer program product, where the computer program product includes a computer program, where the computer program implements the vibration interaction method provided by the embodiment of the present application when the computer program is executed by a processor.
In the embodiment of the application, the potential running accident which is associated with the target virtual vehicle and has the highest accident priority can be determined in the running process of the target virtual vehicle, so that the first vibration information can be generated through the virtual running scene of the target virtual vehicle at the corresponding moment and the running state of the target virtual vehicle at the corresponding moment, the vibration device is indicated to perform vibration early warning on the potential running accident through the first vibration information, the variety of vibration interaction in the virtual running scene can be improved, and the applicability is high.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of the principles provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart of a vibration interaction method according to an embodiment of the present application;
FIG. 3 is a schematic view of a vibration device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 5 is a second schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 6 is a third schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 8 is a fifth schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 10 is a schematic diagram of a virtual vehicle driving scenario provided by an embodiment of the present application;
FIG. 11 is a schematic flow chart of a vibration interaction process provided by an embodiment of the present application;
FIG. 12 is a schematic diagram of a vibration interaction device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The vibration interaction method provided by the embodiment of the application can be applied to the fields of games, maps and the like and is used for carrying out vibration feedback on the running condition of the virtual vehicle.
Referring to fig. 1, fig. 1 is a schematic diagram of the principle provided by an embodiment of the present application. As shown in fig. 1, during the driving of the target virtual vehicle, the apparatus 100 may determine at least one potential driving accident associated with the target virtual vehicle in the virtual driving scene at the first time, and determine a first driving accident of the driving accident having the highest accident priority from the at least one potential driving accident.
Further, the apparatus 100 may generate the first vibration information for performing the vibration early warning on the first accident according to the virtual driving scenario and the driving state of the target virtual vehicle at the first moment, so that the vibration device 200 may be instructed to perform the vibration early warning on the first driving accident according to the first vibration information, so as to prompt the operator of the target virtual vehicle to sense the potential driving accident in advance.
The device 100 may be a server or a terminal, and may specifically be determined based on actual application scenario requirements, which is not limited herein.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
The terminal can be a smart phone, a tablet personal computer, a notebook computer, a desktop computer, a smart sound box, a smart watch, a vehicle-mounted terminal, an aircraft, a smart home appliance (such as a smart television) or a wearable device.
The vibration device 200 may be a vibration motor built in the apparatus 100, and the apparatus 100 displays a related image of the virtual driving scene of the target virtual vehicle. Alternatively, the vibration device 200 may be a steering wheel, a seat, or the like for controlling the target virtual vehicle, and the vibration device 200 and the terminal 100 are connected in a wired or wireless manner, and may be specifically determined based on the actual application scene requirement, which is not limited herein.
Referring to fig. 2, fig. 2 is a flow chart of a vibration interaction method according to an embodiment of the present application. The vibration interaction method shown in fig. 2 specifically includes the following steps:
step S21, in the running process of the target virtual vehicle, according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment, determining at least one potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment, and determining a first running accident with the highest accident priority from the at least one potential running accident.
In some possible embodiments, the first time may be any time during the running of the target virtual vehicle, or may be a corresponding time when the preset running condition is met during the running of the target. The preset driving conditions include, but are not limited to, driving into accident multiple road sections, triggering a game vibration interaction mechanism by a target virtual vehicle, and the like, and specifically may be determined based on actual application scene requirements, which is not limited herein.
In some possible embodiments, the virtual driving scene corresponding to any moment in the driving process of the target virtual vehicle includes, but is not limited to, the target virtual vehicle, the traffic lane, other virtual vehicles or obstacles, pedestrians on the traffic lane, and the like in the virtual driving scene, specifically may be determined based on the actual application scene requirement, and is not limited herein.
When determining the potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment, the potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment can be determined according to the running state between the target virtual vehicle and other virtual vehicles in the virtual running scene, the relative speed, the relative distance and the relative position between the target virtual vehicle and other virtual vehicles, the position information of other elements except the virtual vehicle in the virtual running scene, and the like.
The driving state includes, but is not limited to, a driving speed, a driving direction, a driving acceleration, and the like, and is not limited thereto.
The potential driving accidents associated with the target virtual vehicle are all driving accidents that may occur in the target virtual vehicle when all virtual vehicles in the virtual driving scene continue to drive in the driving state of the first moment, including but not limited to, the target virtual vehicle hitting an obstacle, the target virtual vehicle hitting a curve, the target virtual vehicle hitting other virtual vehicles, the target virtual vehicle being knocked by other virtual vehicles, the target virtual vehicle hitting a pedestrian, the target virtual vehicle running a red light or violating a traffic rule, and the like, which may be specifically determined based on the actual application scene requirements, without limitation.
The potential driving accidents associated with the target virtual vehicle may also be driving accidents caused by changing the driving mode of the target virtual vehicle in the process that all virtual vehicles in the virtual driving scene continue to drive in the driving state of the first moment, including, but not limited to, all possible driving accidents caused by speed change (such as acceleration, deceleration or parking) of the target virtual vehicle, and all possible driving accidents caused by sudden change of the driving direction (such as left turn or right turn) of the target virtual vehicle, which may be specifically determined based on the actual application scene requirement, and is not limited herein.
After determining each potential driving accident associated with the target virtual vehicle, the preset accident priority of each potential driving accident can be compared to determine the first driving accident with the highest accident priority.
The preset accident priority of each potential driving accident can be determined according to the accident hazard degree, the accident occurrence frequency and the like, and the method is not limited.
Optionally, when determining the potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment, the scene image of the virtual running scene and the running state between the target virtual vehicle and other virtual vehicles in the virtual running scene of the target virtual vehicle in the virtual running scene, the relative speed, the relative distance and the relative position between the target virtual vehicle and other virtual vehicles and other information are input into the pre-trained accident prediction model, so as to obtain at least one potential running accident associated with the target virtual vehicle and the accident occurrence probability of each potential running accident, and further determine the potential running accident with the highest accident occurrence probability as the first running accident.
The pre-trained accident prediction model may be trained based on a Machine Learning (ML) field of artificial intelligence (Artificial Intelligence, AI), cloud computing (Cloud computing) in Cloud technology, and the like.
Wherein artificial intelligence is the intelligence of simulating, extending and expanding a person using a digital computer or a machine controlled by a digital computer, sensing the environment, obtaining knowledge, and using knowledge to obtain optimal results. In other words, artificial intelligence is an integrated technology of computer science that attempts to understand the essence of intelligence and to produce a new intelligent machine that can react in a similar way to human intelligence.
Machine learning is the specialized study of how computers simulate or implement learning behavior of humans to acquire new knowledge or skills, reorganizing existing knowledge structures to continually improve their own performance. Machine learning is the core of artificial intelligence, a fundamental approach to letting computers have intelligence, which is applied throughout various areas of artificial intelligence. In the embodiment of the application, the machine with the accident analysis capability can be trained based on the machine learning means, and the potential driving accidents and the accident occurrence probability thereof can be determined by the machine.
Step S22, first vibration information for carrying out vibration early warning on a first driving accident is generated according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment.
In some possible embodiments, after the first driving accident is determined, a target scene element of the first driving accident, which may occur with the target virtual vehicle, in the virtual driving scene at the first time may be determined according to the virtual driving scene at the first time and the driving state of the target virtual vehicle at the first time, and first vibration information may be generated according to the driving state of the target virtual vehicle at the first time and the moving state of the target scene element at the first time, where the first vibration information is used for performing vibration early warning on the first driving accident.
The target scene element may be other moving scene elements in the virtual driving scene, such as other virtual vehicles, pedestrians or moving obstacles, or may be a fixed area where a first driving accident occurs with the target virtual vehicle, such as a curve area, a road break area or other fixed obstacles that may collide with the target virtual vehicle, which may be specifically determined based on the actual application scene requirement, and is not limited herein.
The driving state of the target virtual vehicle at the first moment includes, but is not limited to, acceleration, driving speed, driving direction and the like, and when the target scene element is a non-moving scene element, the moving state of the target scene element at the first moment, such as acceleration, moving speed, moving direction and the like, is 0.
In some possible implementations, the first vibration information may include first configuration information and second configuration information.
Specifically, the first configuration information is used for indicating the vibration device to perform vibration early warning on the front-rear position relationship of the target scene element compared with the target virtual vehicle.
The first configuration information may be used to instruct the vibration device to vibrate at different positions to indicate that the target scene element is located in front of the target virtual vehicle or behind the target virtual vehicle.
For example, the vibration device may be a steering wheel shown in fig. 3, and vibration motors are respectively disposed at left, right, upper and lower sides of the steering wheel, and each of the vibration motors may vibrate according to corresponding vibration information.
For example, the first configuration information is used to instruct the vibration device to vibrate at a front side position (or an upper side position) to indicate that the target scene element is located in front of the target virtual vehicle, and the first configuration information is used to instruct the vibration device to vibrate at a rear side position (or a lower side position) to indicate that the target scene element is located behind the target virtual vehicle.
The first configuration information may instruct the vibration device to vibrate in different vibration modes, so as to instruct the target scene element to be located in front of the target virtual vehicle or behind the target virtual vehicle.
For example, the first configuration information includes at least one piece of sub-configuration information, each piece of sub-configuration information is used for indicating a vibration mode of at least one vibration position of the vibration device, and vibration positions corresponding to different pieces of sub-configuration information are different.
When the first configuration information includes one piece of sub-configuration information, the sub-configuration information is the first configuration information.
Each piece of sub-configuration information of the first configuration information comprises at least one vibration unit, and each vibration unit indicates a vibration mode of a short vibration through vibration indexes such as vibration frequency, vibration intensity, vibration duration and the like. When each sub-configuration information includes one vibration unit, i.e., the first configuration information includes one vibration unit, the first configuration information is used to indicate a vibration mode of one short vibration of the corresponding vibration position. When each sub-configuration information includes a plurality of vibration units, the sub-configuration information is used to indicate a vibration mode of one long vibration of the corresponding vibration position, the long vibration includes a plurality of short vibrations, each of the short vibrations corresponds to one of the vibration units, and each of the vibration units is used to indicate a vibration mode of one of the short vibrations of the corresponding vibration position.
As an example, each piece of sub-configuration information may be vibration coded in the following format:
{direction,{len,[{ freq, intensity, time}, { freq, intensity, time}, { freq, intensity, time},…,{ freq, intensity, time}]}}
wherein Len is a positive integer of 8 bytes, and represents the number of vibration units { freq, intensity, time } included in the sub-configuration information, and if it is 1, it represents that the sub-configuration information includes one vibration unit, that is, the sub-configuration information is used to indicate one short vibration. If greater than 1, it indicates that the sub-configuration information is a long vibration.
Wherein the Direction is an 8-byte positive integer, and the value range is 0 or 1, wherein 0 represents that the sub-configuration information is used for indicating that the vibration position of the vibration device is on the left side, and 1 represents that the sub-configuration information is used for indicating that the vibration position of the vibration device is on the right side.
Where Freq is an 8 byte integer representing the vibration frequency.
Wherein, the integrity is an integer of 8 bytes, which represents the vibration Intensity.
Wherein time is an integer of 8 bytes for representing the vibration duration. Or when len is 1, the time represents the vibration duration, and when len is greater than 1, the time in each vibration unit represents the vibration start time of the corresponding vibration unit to indirectly indicate the vibration duration.
For example, a vibration unit corresponding to a short vibration with a frequency of 80, an intensity of 50, and a duration of 200ms may be expressed as: {1,[{80,50,200}]}.
If the sub-configuration information is used to indicate that the vibration position of the vibration device is on the left side, the sub-configuration information may be expressed as: {0, {1,[{80,50,200}]}}.
For another example, if the sub-configuration information is used to indicate a long vibration with an initial frequency of 30, an intensity of 50, a frequency of 50 after 100ms, an intensity of 60 after 100ms, an intensity of 80 after 100ms, and an intensity of 60 after 100ms, the vibration process may be expressed as: {4,[{30,50,0}{50,60,100}{60,80,200}{80,60,300}]}.
If the first configuration information includes two pieces of sub-configuration information, the two pieces of sub-configuration information are respectively used for indicating the left side and the right side of the vibration device to vibrate, and the vibration intensity of the right side vibration is the left side of the vibration device, the corresponding sub-configuration information on the left side can be expressed as: {0, {4, [ {30,50,0} {50,60,100} {60,80,200} {80,60,300} }, the corresponding sub-configuration information on the right side may be expressed as {1, {4, [ {30,20,0} {50,30,100} {60,40,200} {80,30,300 }.
The first configuration information is used for indicating the vibration device to vibrate at different positions so as to indicate that the target scene element is located in front of the target virtual vehicle or located behind the target virtual vehicle, and vibration indexes of the first configuration information when the vibration device is indicated to vibrate at different positions can be the same or different, and the vibration indexes are not limited herein.
Wherein the vibration index includes a vibration frequency, a vibration intensity, and a vibration duration.
The first configuration information is used for indicating the vibration device to vibrate in different vibration modes so as to indicate that the vibration positions of the vibration device are the same when the target scene element is positioned in front of the target virtual vehicle or behind the target virtual vehicle.
Specifically, the second configuration information is used for indicating the vibration device to perform vibration early warning on the relative running state of the target scene element and the target virtual vehicle, and the relative running state comprises at least one of a front-back relative distance or a relative speed.
The second configuration information is used for indicating the vibration mode of the vibration device at one vibration position when the vibration device performs vibration early warning on the relative distance between the target scene element and the target virtual vehicle, and the value of at least one vibration index of the vibration frequency, the vibration intensity or the vibration duration in each piece of sub-configuration information is linearly related to the relative distance. For example, the further the target scene element is from the target virtual vehicle at the first time, the smaller the value of the vibration frequency, and/or vibration intensity, and/or vibration duration of each sub-configuration information in the second configuration information, the closer the target scene element is from the target virtual vehicle at the first time, and the larger the value of the vibration frequency, and/or vibration intensity, and/or vibration duration of each sub-configuration information in the second configuration information.
The second configuration information is used for indicating the vibration mode of the vibration device at one vibration position when the vibration device performs vibration early warning on the relative speed of the target scene element and the target virtual vehicle, and the value of at least one vibration index in each piece of sub-configuration information is linearly related to the relative speed. For example, the greater the relative speed of the target scene element to the target virtual vehicle at the first time, the greater the value of the vibration frequency, and/or vibration intensity, and/or vibration duration of each sub-configuration information in the second configuration information, the smaller the relative speed of the target scene element to the target virtual vehicle at the first time, and the smaller the value of the vibration frequency, and/or vibration intensity, and/or vibration duration in each sub-configuration information in the second configuration information.
When the vibration device performs vibration early warning on the relative distance and the relative speed between the target scene element and the target virtual vehicle, the second configuration information is used for indicating that one or two vibration indexes of vibration frequency, vibration intensity or vibration duration of each piece of sub-configuration information in the second configuration information are linearly related to the relative distance, and the values of other vibration indexes are linearly related to the relative speed.
In some possible implementations, the first vibration information includes first configuration information and second configuration information when the first driving accident is a potential virtual vehicle collision accident between the target virtual vehicle and the first virtual vehicle.
Specifically, the first configuration information is used for indicating the vibration device to perform vibration early warning on the front-rear position relationship of the first virtual vehicle compared with the target virtual vehicle.
The first configuration information may be used to instruct the vibration device to vibrate at different positions to indicate that the first virtual vehicle is located before the target virtual vehicle or is located after the target virtual vehicle.
The first configuration information may instruct the vibration device to vibrate in different vibration modes, so as to instruct the first virtual vehicle to be located in front of the target virtual vehicle or to be located behind the target virtual vehicle.
The first configuration information is used for indicating that the vibration device vibrates at different positions so as to indicate that the first virtual vehicle is located before the target virtual vehicle or located after the target virtual vehicle, and vibration indexes of the first configuration information when the vibration device is indicated to vibrate at different positions can be the same or different, and the vibration indexes are not limited herein.
Wherein the vibration index includes a vibration frequency, a vibration intensity, and a vibration duration.
The first configuration information is used for indicating the vibration device to vibrate in different vibration modes so as to indicate that the vibration positions of the vibration device are the same when the first virtual vehicle is located in front of the target virtual vehicle or behind the target virtual vehicle.
Specifically, the second configuration information is used for indicating the vibration device to perform vibration early warning on the relative running state of the first virtual vehicle and the target virtual vehicle, and the relative running state comprises at least one of a front-back relative distance or a relative speed.
The second configuration information is used for indicating the vibration mode of the vibration device at one vibration position when the vibration device performs vibration early warning on the relative distance between the first virtual vehicle and the target virtual vehicle, and the value of at least one vibration index of the vibration frequency, the vibration intensity or the vibration duration in each piece of sub-configuration information is linearly related to the relative distance. For example, the farther the relative distance of the first virtual vehicle from the target virtual vehicle at the first time, the smaller the value of the vibration frequency, and/or the vibration intensity, and/or the vibration duration of each piece of the second configuration information, the closer the relative distance of the first virtual vehicle from the target virtual vehicle at the first time, and the larger the value of the vibration frequency, and/or the vibration intensity, and/or the vibration duration of each piece of the second configuration information.
As an example, when the second configuration information is used to instruct the vibration device to perform vibration pre-warning on the relative distance between the first virtual vehicle and the target virtual vehicle, the second configuration information includes sub-configuration information corresponding to the left and right vibration positions, respectively, and each sub-configuration information may be represented as {4, {20,30,0} {20,40, t } {40,50, t } {30,20, t }. t is positively correlated with the relative distance.
The second configuration information is used for indicating the vibration mode of the vibration device at one vibration position when the vibration device performs vibration early warning on the relative speed of the first virtual vehicle and the target virtual vehicle, and the value of at least one vibration index in each piece of sub-configuration information is linearly related to the relative speed. For example, the greater the relative speed of the first virtual vehicle and the target virtual vehicle at the first time, the greater the value of the vibration frequency, and/or the vibration intensity, and/or the vibration duration of each piece of sub-configuration information in the second configuration information, the smaller the relative speed of the first virtual vehicle and the target virtual vehicle at the first time, and the smaller the value of the vibration frequency, and/or the vibration intensity, and/or the vibration duration of each piece of sub-configuration information in the second configuration information.
As an example, when the second configuration information is used to instruct the vibration device to perform vibration pre-warning on the relative speed of the first virtual vehicle and the target virtual vehicle, the second configuration information includes sub-configuration information corresponding to the left and right vibration positions, respectively, and each sub-configuration information may be represented as {4, {30, i,0} {40, i,50} {50, i,100} {60, i,150 }. i is the vibration intensity, which is positively correlated with the relative distance.
When the vibration device performs vibration early warning on the relative distance and the relative speed between the first virtual vehicle and the target virtual vehicle, the second configuration information is used for indicating that one or two vibration indexes of vibration frequency, vibration intensity or vibration duration of each piece of sub-configuration information in the second configuration information are linearly related to the relative distance, and the values of other vibration indexes are linearly related to the relative speed.
In particular, the values of the other indices in the second configuration information other than the vibration index linearly related to the relative distance and the vibration index linearly related to the relative velocity may be arbitrary values. When each piece of the second configuration information includes a plurality of vibration units, the value of the vibration index linearly related to the relative distance in each vibration unit is the same or linearly increases, and the value of the vibration index linearly related to the relative speed in each vibration unit is the same or linearly increases.
As an example, referring to fig. 4, fig. 4 is one of schematic diagrams of a virtual vehicle driving scenario provided in an embodiment of the present application.
The virtual vehicle driving scene shown in fig. 4 is assumed to be a virtual driving scene of the target virtual vehicle at the first moment, and the first driving accident, in which the target virtual vehicle is associated with the target virtual vehicle in the virtual driving scene at the first moment and the accident priority is highest, is an impact accident between the first virtual vehicle and the target virtual vehicle. In this case, the first vibration information for vibration early warning of the first driving accident may be generated based on the driving state of the first virtual vehicle at the first time and the driving state of the target virtual vehicle at the first time.
The first vibration information includes first configuration information, and the first configuration information may include sub configuration information {0, {1, {20,50,100} } }, and sub configuration information {1, {1, {20,50,100}, for indicating that the vibration device vibrates on both left and right sides in a vibration manner indicated by the vibration unit {20,50,100}, to indicate that the first virtual vehicle is located in front of the target virtual vehicle.
The first vibration information includes second configuration information, and the second configuration information may include sub-configuration information {0, {4, {20,30,0} {20,40,100} {40,50,200} {30,20,300} }, and sub-configuration information {1, {4, {20,30,0} {20,40,100} {40,50,200} {30,20,300}, so as to indicate that the left and right sides of the vibration device vibrate in a vibration manner indicated by {4, {20,30,0} {20,40,100} {40,50,200} {30,20,300}, thereby indicating a relative distance between the first virtual vehicle and the target virtual vehicle.
Alternatively, the second configuration information may include sub configuration information {0, {4, {30,20,0} {40,20,50} {50,20,100} {60,20,150} } }, and sub configuration information {1, {4, {30,20,0} {40,20,50} {50,20,100} {60,20,150} }, to instruct the left and right sides of the vibration device to vibrate in a vibration manner indicated by {4, {30,20,0} {40,20,50} {50,20,100} {60,20,150}, by the two sub configuration information, thereby indicating the relative speeds of the first virtual vehicle and the target virtual vehicle.
And S23, according to the first vibration information, the vibration device is instructed to perform vibration early warning on the first driving accident after the first moment.
In some possible embodiments, after the first vibration information is generated, the vibration device may be instructed to vibrate the front-rear positional relationship of the first virtual vehicle compared to the target virtual vehicle after the first time according to the first configuration information in the first vibration information, so as to feedback in a vibration manner that the first virtual vehicle is located before the target virtual vehicle or is located after the target virtual vehicle through the vibration device.
Further, after the vibration device performs vibration early warning on the front-rear position relationship of the first virtual vehicle compared with the target virtual vehicle, the vibration device may be instructed to perform vibration early warning on the running state (relative distance and/or relative speed) of the first virtual vehicle compared with the target virtual vehicle according to the second configuration information, so as to feed back the relative running states of the first virtual vehicle and the target virtual vehicle in a vibration mode through the vibration device.
In some possible implementations, the second configuration information of the first vibration information includes first sub-configuration information for indicating a left-side vibration of the vibration device and second sub-configuration information for indicating a right-side vibration of the vibration device.
Wherein the value of the first vibration index in the first sub-configuration information and the second sub-configuration information is linearly related to the relative distance of the first virtual vehicle and the target virtual vehicle, and the value of the second vibration index in the first sub-configuration information and the second sub-configuration information is linearly related to the relative speeds of the first virtual vehicle and the target virtual vehicle.
When the first virtual vehicle is positioned on the left side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle are overlapped in the first direction, the value of the third vibration index in the first sub-configuration information is a preset value, and the ratio of the value of the third vibration index in the second sub-configuration information to the preset value is positively related to the overlapping rate of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction.
When the first virtual vehicle is positioned on the right side of the target virtual vehicle and the body of the first virtual vehicle and the body of the target virtual vehicle are overlapped in the first direction, the value of the third vibration index in the first sub-configuration information is a preset value, and the ratio of the value of the third vibration index in the first sub-configuration information to the preset value is positively correlated with the overlapping rate of the body of the first virtual vehicle and the body of the target virtual vehicle in the first direction.
Wherein the first direction is perpendicular to the forward direction of the target virtual vehicle.
The first vibration index, the second vibration index and the third vibration index are different and are respectively one of vibration frequency, vibration intensity and vibration duration.
That is, the second configuration information of the first vibration information may indicate that both sides of the vibration device vibrate simultaneously, and that the first vibration index (e.g., vibration duration) when both sides of the vibration device vibrate is the same and linearly related to the relative distance of the first virtual vehicle and the target virtual vehicle, and the second vibration index (e.g., vibration frequency) when both sides of the vibration device vibrate is the same and linearly related to the relative speeds of the first virtual vehicle and the target virtual vehicle.
When the first virtual vehicle is positioned on the left side of the target virtual vehicle, the left side and the right side of the vibration device vibrate simultaneously, and the ratio of the vibration intensity when the right side vibrates to the vibration intensity when the left side vibrates is positively correlated with the overlapping rate of the first virtual vehicle and the target virtual vehicle in the first direction (such as the transverse direction), namely the vibration intensity when the right side vibrates is weaker, so that the purpose of prompting that the first virtual vehicle is positioned on the left side of the target virtual vehicle is achieved. When the first virtual vehicle is positioned on the right side of the target virtual vehicle, the left side and the right side of the vibration device vibrate simultaneously, and the ratio of the vibration intensity when the left side vibrates to the vibration intensity when the right side vibrates is positively correlated with the overlapping rate of the first virtual vehicle and the target virtual vehicle in the first direction (such as the transverse direction), namely the vibration intensity when the left side vibrates is weaker, so that the purpose of prompting the first virtual vehicle on the right side of the target virtual vehicle is achieved.
Based on this, after the first vibration information for performing vibration early warning on the first driving accident is generated, the vibration device may be instructed to perform vibration early warning on the front-rear positional relationship of the first virtual vehicle compared to the target virtual vehicle according to the first configuration information of the first vibration information after the first time. Further, after that, the vibration device is instructed to perform vibration pre-warning on the relative speed and/or the relative distance between the first virtual vehicle and the target virtual vehicle according to the second configuration information of the first vibration information, and meanwhile, the vibration pre-warning is performed on the left-right position relationship between the first virtual vehicle and the target virtual vehicle, so that the specific position relationship of the first virtual vehicle compared with the target virtual vehicle, such as the position at the left front, the left rear, the right front and the right rear of the target virtual vehicle, is instructed by the combination of the first configuration information and the second configuration information.
In some possible embodiments, the first driving accident is a potential interruption driving accident of the target virtual vehicle caused by a curve, a moving obstacle, a fixed obstacle, a road interruption in front of the driving, and the like.
In this case, the first vibration information may be generated according to the traveling state of the target virtual vehicle at the first time and the virtual traveling scene at the first time. The first vibration information is used for indicating the vibration device to vibrate the driving mode of the target virtual vehicle for avoiding the occurrence of the first driving accident so as to indirectly realize the vibration early warning of the first driving accident.
The driving manner for avoiding the first driving accident includes, but is not limited to, deceleration driving, cornering driving, acceleration driving, turning around driving, etc., which may be specifically determined based on the actual application scenario requirement, and is not limited herein.
As an example, the driving mode for avoiding the first driving accident includes turning driving, where the first vibration information may be used to instruct the vibration device to perform vibration early warning on the turning mode of the target virtual vehicle for avoiding the first driving accident.
The value of at least one vibration index of the vibration frequency, the vibration intensity and the vibration duration in the first vibration information is positively correlated with the turning angle, namely, the larger the turning angle corresponding to the target virtual vehicle is, the larger the corresponding value of the vibration index is.
The first vibration information may also indicate a vibration position of the vibration device, and if the target virtual vehicle needs to turn left, the first vibration information is used for indicating left-side vibration of the vibration device, and if the target virtual vehicle needs to turn right, the first vibration information is used for indicating right-side vibration of the vibration device.
As an example, the first vibration information may be vibration encoded in the following format:
{direction,{len,[{ freq, intensity, time}, { freq, intensity, time}, { freq, intensity, time},…,{ freq, intensity, time}]}}
Wherein Len is a positive integer of 8 bytes, representing the number of vibration units { freq, intensity, time }, and if 1, representing that one vibration unit is included, i.e., the first vibration information is used to indicate one short vibration. If greater than 1, it indicates that the sub-configuration information is a long vibration.
Wherein the Direction is a positive integer of 8 bytes, and the value range is 0 or 1, wherein 0 indicates that the vibration position of the vibration device is on the left side, and 1 indicates that the vibration position of the vibration device is on the right side. That is, when the target virtual vehicle needs to turn right, the Direction is 1, and when the target virtual vehicle needs to turn left, the Direction is 0.
Where Freq is an 8 byte integer representing the vibration frequency.
Wherein, the integrity is an integer of 8 bytes, which represents the vibration Intensity.
Wherein time is an integer of 8 bytes for representing the vibration duration. Or when len is 1, the time represents the vibration duration, and when len is greater than 1, the time in each vibration unit represents the vibration start time of the corresponding vibration unit to indirectly indicate the vibration duration.
The value of any one or more vibration indexes of the vibration frequency, the vibration intensity or the vibration time in each vibration unit is positively correlated with the turning angle of the target virtual vehicle, and the values of other vibration indexes can be determined based on actual application scene requirements without limitation.
For example, as shown in fig. 5, fig. 5 is a second schematic diagram of a virtual vehicle driving scenario provided in an embodiment of the present application. If the target virtual vehicle shown in fig. 5 encounters a sharp right turn during driving, the first vibration information may include a sub-configuration information for indicating the right-side vibration of the vibration device, and the vibration code may be expressed as: {1, {4,{30,90,0}{40,90,50} {60,90,100}{20,90,150}}}.
For example, as shown in fig. 6, fig. 6 is a third schematic diagram of a virtual vehicle driving scenario provided in an embodiment of the present application. If the target virtual vehicle shown in fig. 6 needs to turn left slightly during running and then turn right largely after going straight, the first vibration information before turning left slightly may include a piece of sub-configuration information, which is used to indicate the left vibration of the vibration device, and the vibration code may be expressed as: {0, {4,{60,20,0}{70,20,200} {80,20,400}{90,20,600}}}. The first vibration information before the large right turn may include a sub-configuration information for indicating the right-side vibration of the vibration device, and the vibration code thereof may be expressed as: {0, {4,{60,80,0}{70,80,50} {80,80,100}{90,80,150}}}.
Wherein, the larger the turning angle is, the larger the vibration intensity of the first vibration information is.
In some possible embodiments, after the second driving accident occurs in the target virtual vehicle at the second time, the second vibration information may be determined according to an accident type of the second driving accident.
Wherein the second vibration information includes at least one vibration unit, each of which indicates a short vibration by a vibration frequency, a vibration intensity, or a vibration duration. The second vibration information may be encoded by the aforementioned sub-arrangement information or the first vibration information.
Wherein different accident types correspond to different vibration information, and vibration positions corresponding to the different vibration information are different, and/or values of at least one vibration index of at least one vibration unit in the different vibration information are different.
In this case, the vibration device may be instructed to perform vibration feedback on the second running accident at the second time according to the second vibration information, so as to prompt the target virtual vehicle to take place the running accident of the corresponding accident type.
The accident types include, but are not limited to, the target virtual vehicle rushing out of the lane, the target virtual vehicle rushing into a curve, the target virtual vehicle rushing into an obstacle in the lane, the target virtual vehicle rushing into other virtual vehicles, the target virtual vehicle rushing into a pedestrian, the target virtual vehicle driving into an interruption road section, and the like, which can be specifically determined based on the actual application scene requirements without limitation.
As an example, as shown in fig. 7, fig. 7 is a schematic diagram of a virtual vehicle driving scene provided in an embodiment of the present application. If the target virtual vehicle shown in fig. 7 is rushed out of the lane at the second time, the left and right sides of the vibration device can be instructed to vibrate in a vibration mode shown as {4, {10,20,0} {20,30,100} {30,40,200} {40,50,300} } }, according to the second vibration information at the second time.
As an example, as shown in fig. 8, fig. 8 is a schematic diagram of a virtual vehicle driving scenario provided in an embodiment of the present application. If the target virtual vehicle shown in fig. 8 hits an obstacle (hits the lane edge) at the second time, the vibration device may be instructed to vibrate in a vibration manner shown by {4, {20,20,0} {30,30,100} {40,40,200} {50,50,300} }, on the left and right sides of the vibration device at the second time according to the second vibration information.
As an example, as shown in fig. 9, fig. 9 is a schematic diagram of a virtual vehicle driving scenario provided in an embodiment of the present application. If the target virtual vehicle shown in fig. 9 hits another virtual vehicle at the second time, the vibration device may be instructed to vibrate in a vibration mode shown by {4, {30,20,0} {40,30,100} {50,40,200} {60,50,300} } }, on the left and right sides of the vibration device at the second time according to the second vibration information.
As an example, as shown in fig. 10, fig. 10 is a schematic diagram of a virtual vehicle driving scene provided in an embodiment of the present application. If the target virtual vehicle shown in fig. 10 is hit by another virtual vehicle at the second time, the vibration device may be instructed to vibrate in a vibration mode shown as {4, {40,20,0} {50,30,100} {60,40,200} {70,50,300} } }, on the left and right sides of the vibration device at the second time according to the second vibration information.
In some possible embodiments, after the vibration feedback of the second running accident by the vibration device is instructed at the second time according to the second vibration information, the third vibration information may be generated according to a running state of the target virtual vehicle after the second running accident occurs.
Wherein the third vibration information is operable to instruct the vibration device to vibrate for prompting at least one of:
the degree of change in the driving state of the target virtual vehicle before and after the second driving accident;
and after the second running accident occurs in the target virtual vehicle, the target virtual vehicle is used for restoring the running mode of running.
Specifically, the degree of change in the running state of the target virtual vehicle before and after the second running accident, including but not limited to the running speed, the running direction, or the degree of change in the running position, occurs.
Wherein the third vibration information includes at least one vibration unit, each of which indicates a short vibration by a vibration frequency, a vibration intensity, or a vibration duration. The third vibration information may be encoded by the encoding method shown in the second vibration information.
Wherein when the third vibration information instruction vibration device performs vibration instruction on the degree of change of the running state before and after the occurrence of the second running accident, at least one vibration index of each vibration unit of the third vibration information is linearly related to the degree of change of the running state.
For example, when the third vibration information instruction vibration device instructs the target virtual vehicle about the degree of change in the travel speed before and after the second travel accident, the value of at least one vibration index in the third vibration information is linearly related to the degree of change in the travel speed before and after the second travel accident.
As an example, the vibration frequency of each vibration unit in the third vibration information is the same and linearly related to the degree of change in the travel speed of the target virtual vehicle before and after the occurrence of the second travel accident.
Alternatively, after the second running accident occurs in the target virtual vehicle, the running mode for resuming running includes, but is not limited to, continuing to advance, to reverse, or to turn, etc.
The third vibration information can be used for indicating the vibration device to perform vibration prompt on a turning mode for restoring running.
The value of at least one vibration index of the vibration frequency, the vibration intensity and the vibration duration in the third vibration information is positively correlated with the turning angle, namely, the larger the corresponding turning angle is when the target virtual vehicle resumes running, the larger the corresponding value of the vibration index is.
Wherein the third vibration information may also indicate a vibration position of the vibration device, i.e., the vibration position of the vibration device indicated by the third vibration information is kept coincident with the turning direction. If the target virtual vehicle needs to turn left during the running recovery, the third vibration information is also used for indicating the left vibration of the vibration device, and if the target virtual vehicle needs to turn right during the running recovery, the third vibration information is also used for indicating the right vibration of the vibration device.
As an example, the third vibration information may be vibration encoded in the following format:
{direction,{len,[{ freq, intensity, time}, { freq, intensity, time}, { freq, intensity, time},…,{ freq, intensity, time}]}}
where Len represents the number of vibration units { freq, intensity, time }.
The Direction is 0, and the vibration position of the vibration device is left, and the Direction is 1, and the vibration position of the vibration device is right. That is, when the target virtual vehicle needs to turn right, the Direction is 1, and when the target virtual vehicle needs to turn left, the Direction is 0.
Where Freq represents the vibration frequency, integrity represents the vibration Intensity, and time represents the vibration duration. Or when len is 1, the time represents the vibration duration, and when len is greater than 1, the time in each vibration unit represents the vibration start time of the corresponding vibration unit to indirectly indicate the vibration duration.
The value of any one or more vibration indexes of the vibration frequency, the vibration intensity or the vibration time in each vibration unit is positively correlated with the turning angle of the target virtual vehicle, and the values of other vibration indexes can be determined based on actual application scene requirements without limitation.
In some possible implementations, the vibration interaction method provided by the embodiment of the application can be applied to the field of games, and the target virtual vehicle is controlled by the first object. In this case, before the game starts, the target scene type of the game scene selected by the first object may be determined in response to the selection operation of the first object, and further the vibration device may be instructed to perform vibration feedback on the target scene type of the game scene selected by the first object according to fourth vibration information corresponding to the target scene type.
The different game scenes can be distinguished according to the game mode, the running map and the game difficulty level, and particularly can be determined based on actual application scene requirements without limitation.
Wherein, different scene types correspond to different vibration information, and the vibration information corresponding to different scene types is preset vibration information.
The vibration information corresponding to different scene types can comprise at least one vibration unit, and each vibration unit indicates a vibration mode of a short vibration through vibration indexes such as vibration frequency, vibration intensity, vibration duration and the like. When the vibration information includes one vibration unit, a vibration mode for indicating one short vibration is used. When the vibration information includes a plurality of vibration units, the vibration information is used for indicating a vibration mode of one long vibration, the long vibration includes a plurality of short vibrations, each of the short vibrations corresponds to one of the vibration units, and each of the vibration units is used for indicating a vibration mode of one of the short vibrations.
The values of the vibration indexes in each vibration unit related to the vibration information corresponding to each scene type may be specifically determined based on the actual application scene requirement, and the values of the at least one vibration index of at least one vibration unit of the vibration information corresponding to different scene types may be different, specifically determined based on the actual application scene requirement, which is not limited herein.
The vibration encoding mode of the vibration information can be any one of the foregoing encoding modes of the vibration information, and will not be described herein.
The vibration information corresponding to each scene type can also indicate the vibration device to vibrate at a designated position.
As an example, the above scene types may be distinguished by a game manner, such as a Player fight environment (Player VS Environment, PVE) scene type, a Player fight Player (Player VS Player, PVP) scene type, and a free practice scene type.
Wherein, each piece of sub-configuration information of vibration information corresponding to the PVE scene type can be expressed as: {4, {60,50,0} {50,60,100} {40,70,200} {30,80,300}, each piece of sub-configuration information of vibration information corresponding to the PVP scene type may be expressed as: {4, {60,60,0} {50,70,100} {40,80,200} {30,90,300}, each piece of sub-configuration information of vibration information corresponding to the free exercise scene type may be expressed as: {4,{60,70,0}{50,80,100} {40,90,200}{30,100,300}}.
Optionally, in the embodiment of the present application, after the vibration feedback is performed on the target scene type through the fourth vibration indication information, the vibration device may further respond to the selection operation of the first object for the target virtual vehicle, and further may be indicated to perform the vibration feedback on the virtual vehicle attribute of the target virtual vehicle according to the fourth vibration information corresponding to the target virtual vehicle.
The virtual vehicle attribute of any virtual vehicle includes, but is not limited to, one or more attribute items such as a virtual vehicle class, a highest running speed, a linear acceleration capability, a curve running capability, an operation difficulty level, a triggering capability of an acceleration condition, and the like, and may be specifically determined based on an actual application scene requirement, which is not limited herein.
Wherein, each attribute item can comprise a plurality of grades for reflecting the capability of the virtual vehicle under the corresponding attribute item.
The fifth vibration information may include at least one vibration unit, each of which indicates a vibration mode of a short vibration by vibration indexes such as a vibration frequency, a vibration intensity, and a vibration duration. When the vibration information includes one vibration unit, a vibration mode for indicating one short vibration is used. When the vibration information includes a plurality of vibration units, the vibration information is used for indicating a vibration mode of one long vibration, the long vibration includes a plurality of short vibrations, each of the short vibrations corresponds to one of the vibration units, and each of the vibration units is used for indicating a vibration mode of one of the short vibrations.
When the fifth vibration information includes one vibration unit, any one of the vibration index of the vibration intensity, the vibration frequency, or the vibration duration in the fifth vibration information may reflect different levels of one attribute item and/or a combination of levels of a plurality of attribute items by different values.
For example, the magnitude of the value of the vibration intensity in the fifth vibration information may reflect different levels of one attribute item, or may reflect different level combinations of a plurality of attribute items.
Alternatively, any of a plurality of vibration indicators in the vibration intensity, vibration frequency, or vibration duration in the fifth vibration information may reflect different levels of one attribute item and/or different level combinations of different attribute items by a combination of different values.
For example, the values of the vibration intensity and the vibration frequency in the fifth vibration information may jointly indicate different levels of one attribute item, or jointly indicate a level combination of a plurality of attribute items.
Or, the fifth vibration information includes a plurality of vibration units, and the fourth vibration index in each vibration unit corresponds to one attribute item when the values of the fourth vibration index in each vibration unit are in different combinations, and corresponds to one grade when the values of the fifth vibration index in each vibration unit are in different combinations.
The vibration encoding mode of the vibration information can be any one of the foregoing encoding modes of the vibration information, and will not be described herein.
Wherein the fifth vibration information may further indicate that the vibration device vibrates at a designated position.
As an example, the fifth vibration information includes four vibration units, and the fifth vibration information may indicate that both sides of the vibration device vibrate simultaneously through one long vibration including 4-segment short vibrations to perform vibration feedback on the level of one attribute item, and the vibration code of the fifth vibration information may be expressed as {4, [ { f1, i1,0}, { f2, i2,100}, { f3, i3,200}, { f4, i4,300} }, and the values of the vibration frequencies of the 4 vibration units may jointly indicate one attribute item through different combinations, and the values of the vibration intensities may jointly indicate the level through different combinations.
For example, the vibration frequency of each vibration unit in the fifth vibration information takes the following value:
wherein f1=f3=f0, f2=f4, f2=f1+m, and f0 and m corresponding to each level of each attribute item are preset values.
For example, the vibration intensity of each vibration unit in the fifth vibration information takes the following value:
the values of vibration intensities of different gears for each attribute are as follows:
wherein i1=i0, i2=i0-n 1, i3=i0-n 2, i4=i0-n 3, n1, n2 and n3 are preset values, respectively, and i0 corresponding to different levels is a different preset value.
As an example, if the linear acceleration capability of the target virtual vehicle is a medium level, the fifth vibration information may be expressed as {4, [ {30, 60,0}, {40, 40, 100}, {30, 30, 200}, {40, 50, 300} } }, and the fifth vibration information may be used to indicate that both the left and right sides of the vibration device vibrate simultaneously.
The triggering capability of the acceleration condition is used to characterize the difficulty level of the virtual vehicle reaching the acceleration condition, and the acceleration condition includes, but is not limited to, a preset duration of running the virtual vehicle at a certain speed, a preset resource amount of collecting virtual resources (such as nitrogen, acceleration props, etc.) by the virtual vehicle, and the like, and may be specifically determined based on actual application scene requirements, which is not limited herein.
In this case, during the traveling of the target virtual vehicle, in response to the acceleration condition being satisfied during the traveling of the target virtual vehicle, the vibration device is instructed to prompt the first object to operate the target virtual vehicle to accelerate according to the sixth vibration information.
Alternatively, the game start may be indicated by the seventh vibration information when the target virtual vehicle starts the game, and the game end may be indicated by the eighth vibration information when the target virtual vehicle ends the game.
The sixth vibration information, the seventh vibration information, or the eighth vibration information may be expressed in the same manner as the scene type vibration information, and at least one vibration index of at least one vibration unit is different from any other vibration information.
The vibration interaction method provided by the embodiment of the application is further described below with reference to fig. 11. In racing games, when a player starts to select a game mode, after the player selects a target game mode (such as a PVP mode, i.e. a PVP scene type), the vibration device is instructed to vibrate by corresponding vibration information, so as to perform vibration feedback on the game mode selected by the player.
Further, after the player selects the target virtual vehicle, the vibration device may be instructed to perform vibration feedback on the virtual vehicle attribute of the target virtual vehicle through the corresponding vibration information, and the player may be reminded to start the game in a vibration manner through the corresponding vibration information when starting the game.
During the running of the target virtual vehicle, the vibration information can be used for indicating the vibration device to perform vibration interaction on potential running accidents during the running, the accident type of the running accidents of the target virtual vehicle, the change degree of the running state after the running accidents occur, the running mode for recovering running and the like.
Further, the vibration device can be indicated to remind the player of the game end in a vibration mode through corresponding vibration information when the game ends.
Based on the implementation mode, the vibration interaction diversity in the virtual driving scene can be improved, especially in the game field, the game experience of players can be improved, and the applicability is high.
The vibration information related to the embodiment of the present application may be stored in a designated storage space, where the designated storage space includes, but is not limited to, cloud storage, a database (such as MYSQL database), a blockchain, and a storage space of the device itself that executes the information processing method provided by the embodiment of the present application, and the specific may be determined based on actual application scenario requirements, which is not limited herein.
The database may be considered as an electronic file cabinet, i.e. a place where electronic files are stored, and may be a relational database (SQL database) or a non-relational database (NoSQL database), which is not limited herein. The vibration information storage method and device can be used for storing the vibration information in the embodiment of the application. Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. Blockchains are essentially a de-centralized database, which is a string of data blocks that are generated in association using cryptographic methods. In embodiments of the present application, each data block in the blockchain may store vibration information in embodiments of the present application. Cloud storage is a new concept which extends and develops in the concept of cloud computing, and refers to that a large number of storage devices (storage devices are also called storage nodes) of different types in a network are combined to work cooperatively through application software or application interfaces through functions of cluster application, grid technology, distributed storage file systems and the like, so that vibration information in the embodiment of the application is stored together.
The determining process, the accident priority determining process, the vibration information generating process and the like of the potential driving accidents related to the embodiment of the application can be realized based on cloud computing in cloud technology. The cloud technology is a hosting technology for unifying serial resources such as hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data. The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied by the cloud computing business mode, can form a resource pool, and is flexible and convenient as required.
Cloud computing is a computing model, and is a product of fusion of traditional computer and network technology development such as Grid computing (Grid computing), distributed computing (Distributed Computing), parallel computing (Parallel Computing), utility computing (Utility Computing), network storage (Network Storage Technologies), virtualization (Virtualization), load balancing (Load Balance), and the like. Cloud computing distributes computing tasks on a resource pool formed by a large number of computers, so that various application systems can acquire computing power, storage space and information service according to requirements. The network providing the resources is called a ' cloud ', the resources in the cloud ' are infinitely expandable and available at any time, used on demand, expanded at any time, paid for use on demand.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a vibration interaction device according to an embodiment of the present application. The vibration interaction device provided by the embodiment of the application comprises:
an information analysis module 121, configured to determine, during a running process of a target virtual vehicle, at least one potential running accident associated with the target virtual vehicle in a virtual running scene at a first time according to a virtual running scene at the first time and a running state of the target virtual vehicle at the first time, and determine a first running accident with a highest accident priority from at least one of the potential running accidents;
an information generating module 122, configured to generate first vibration information for performing vibration early warning on the first driving accident according to the virtual driving scene at the first time and the driving state of the target virtual vehicle at the first time;
and the vibration indication module 123 is configured to instruct the vibration device to perform vibration early warning on the first driving accident after the first time according to the first vibration information.
In some possible embodiments, the information generating module 122 is further configured to:
responding to a second running accident of the target virtual vehicle at a second moment, and determining second vibration information according to the accident type of the second running accident;
Wherein, different accident types respectively correspond to different vibration information;
the vibration indication module 123 is further configured to:
and according to the second vibration information, the vibration device is instructed to perform vibration feedback on the second driving accident at the second moment.
In some possible embodiments, the information generating module 122 is further configured to:
generating third vibration information according to the running state of the target virtual vehicle after the second running accident occurs;
the vibration indication module 123 is further configured to:
after the vibration device performs vibration feedback on the second driving accident, according to the third vibration information, the vibration device is instructed to perform vibration prompt on at least one of the following:
the degree of change in the running state of the target virtual vehicle before and after the second running accident;
and after the second running accident occurs in the target virtual vehicle, the running mode for recovering running is used.
In some possible embodiments, the driving state includes a driving speed; the third vibration information indicates that the vibration device is configured to perform a vibration indication of a degree of change in the travel speed before and after the occurrence of the second travel accident, wherein a value of at least one vibration index in the third vibration information is linearly related to the degree of change in the travel speed before and after the occurrence of the second travel accident in the target virtual vehicle;
Wherein the vibration index includes a vibration frequency, a vibration intensity, and a vibration duration.
In some possible embodiments, the driving mode includes a turning mode; when the third vibration information indicates the vibration device to perform vibration prompt on a turning mode for restoring running, the value of at least one vibration index in the third vibration information is positively correlated with the turning angle;
wherein the vibration index comprises vibration frequency, vibration intensity and vibration duration; the vibration position of the vibration device indicated by the third vibration information is kept coincident with the turning direction.
In some possible embodiments, when the first driving accident is a potential virtual vehicle collision accident between the target virtual vehicle and the first virtual vehicle, the first vibration information includes first configuration information and second configuration information;
the first configuration information is used for indicating the vibration device to perform vibration early warning on the front-rear position relationship of the first virtual vehicle compared with the target virtual vehicle;
the second configuration information is used for indicating the vibration device to perform vibration early warning on the relative running state of the first virtual vehicle and the target virtual vehicle, and the relative running state comprises at least one of a front-back relative distance or a relative speed;
The vibration indication module 123 is configured to:
according to the first configuration information, after the first moment, a vibration device is instructed to perform vibration early warning on the front-rear position relation of the first virtual vehicle compared with the target virtual vehicle;
and after the vibration device performs vibration early warning on the front-rear position relation, the vibration device is instructed to perform vibration early warning on the relative running state according to the second configuration information.
In some possible embodiments, the second configuration information includes first sub-configuration information for indicating left-side vibration of the vibration device and second sub-configuration information for indicating right-side vibration of the vibration device;
wherein a value of a first vibration index in the first sub-arrangement information and the second sub-arrangement information is linearly related to the front-rear relative distance, and a value of a second vibration index in the first sub-arrangement information and the second sub-arrangement information is linearly related to the relative speed;
when the first virtual vehicle is located at the left side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle are overlapped in the first direction, the value of the third vibration index in the first sub-configuration information is a preset value, and the ratio of the value of the third vibration index in the second sub-configuration information to the preset value is positively correlated with the overlapping ratio of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction; when the first virtual vehicle is located on the right side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle overlap in the first direction, the value of the third vibration index in the second sub-configuration information is the preset value, and the ratio of the value of the third vibration index in the first sub-configuration information to the preset value is positively correlated with the overlapping ratio of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction;
Wherein the first direction is perpendicular to a forward direction of the target virtual vehicle;
wherein the first vibration index, the second vibration index, and the third vibration index are different, and are each one of a vibration frequency, a vibration intensity, and a vibration duration.
In some possible embodiments, the target virtual vehicle is controlled by a first object, and the vibration indication module 123 is further configured to:
determining a target scene type of a game scene selected by a first object in response to a selection operation of the first object;
according to fourth vibration information corresponding to the target scene type, the vibration device is instructed to perform vibration feedback on the target scene type;
and responding to the selection operation of the first object on the target virtual vehicle, and according to fifth vibration information corresponding to the target virtual vehicle, indicating the affiliated vibration device to perform vibration feedback on the virtual vehicle attribute of the target virtual vehicle.
In some possible embodiments, the vibration indication module 123 is further configured to:
and in response to the acceleration condition being met in the running process of the target virtual vehicle, the vibration device is instructed to prompt the first object to operate the target virtual vehicle for acceleration according to sixth vibration information.
In a specific implementation, the vibration interaction device may execute an implementation manner provided by each step in fig. 2 through each built-in functional module, and specifically, the implementation manner provided by each step may be referred to, which is not described herein again.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 13, the electronic apparatus 1300 in the present embodiment may include: processor 1301, network interface 1304, and memory 1305, in addition, the electronic device 1300 may further include: an object interface 1303, and at least one communication bus 1302. Wherein a communication bus 1302 is used to enable connected communications between these components. The object interface 1303 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional object interface 1303 may further include a standard wired interface and a standard wireless interface. The network interface 1304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1305 may be a high-speed RAM memory or a non-volatile memory (NVM), such as at least one disk memory. Memory 1305 may also optionally be at least one storage device located remotely from the aforementioned processor 1301. As shown in fig. 13, an operating system, a network communication module, an object interface module, and a device control application program may be included in the memory 1305, which is one type of computer-readable storage medium.
In the electronic device 1300 shown in fig. 13, the network interface 1304 may provide network communication functions; while object interface 1303 is mainly used as an interface for providing input to the object; and processor 1301 may be configured to invoke a device control application stored in memory 1305 to implement:
in the running process of a target virtual vehicle, determining at least one potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment, and determining a first running accident with highest accident priority from the at least one potential running accident;
generating first vibration information for performing vibration early warning on the first driving accident according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment;
and according to the first vibration information, the vibration device is instructed to perform vibration early warning on the first driving accident after the first moment.
In some possible embodiments, the processor 1301 is further configured to:
responding to a second running accident of the target virtual vehicle at a second moment, and determining second vibration information according to the accident type of the second running accident;
Wherein, different accident types respectively correspond to different vibration information;
and according to the second vibration information, the vibration device is instructed to perform vibration feedback on the second driving accident at the second moment.
In some possible embodiments, the processor 1301 is further configured to:
generating third vibration information according to the running state of the target virtual vehicle after the second running accident occurs;
after the vibration device performs vibration feedback on the second driving accident, according to the third vibration information, the vibration device is instructed to perform vibration prompt on at least one of the following:
the degree of change in the running state of the target virtual vehicle before and after the second running accident;
and after the second running accident occurs in the target virtual vehicle, the running mode for recovering running is used.
In some possible embodiments, the driving state includes a driving speed; the third vibration information indicates that the vibration device is configured to perform a vibration indication of a degree of change in the travel speed before and after the occurrence of the second travel accident, wherein a value of at least one vibration index in the third vibration information is linearly related to the degree of change in the travel speed before and after the occurrence of the second travel accident in the target virtual vehicle;
Wherein the vibration index includes a vibration frequency, a vibration intensity, and a vibration duration.
In some possible embodiments, the driving mode includes a turning mode; when the third vibration information indicates the vibration device to perform vibration prompt on a turning mode for restoring running, the value of at least one vibration index in the third vibration information is positively correlated with the turning angle;
wherein the vibration index comprises vibration frequency, vibration intensity and vibration duration; the vibration position of the vibration device indicated by the third vibration information is kept coincident with the turning direction.
In some possible embodiments, when the first driving accident is a potential virtual vehicle collision accident between the target virtual vehicle and the first virtual vehicle, the first vibration information includes first configuration information and second configuration information;
the first configuration information is used for indicating the vibration device to perform vibration early warning on the front-rear position relationship of the first virtual vehicle compared with the target virtual vehicle;
the second configuration information is used for indicating the vibration device to perform vibration early warning on the relative running state of the first virtual vehicle and the target virtual vehicle, and the relative running state comprises at least one of a front-back relative distance or a relative speed;
The processor 1301 is configured to:
according to the first configuration information, after the first moment, a vibration device is instructed to perform vibration early warning on the front-rear position relation of the first virtual vehicle compared with the target virtual vehicle;
and after the vibration device performs vibration early warning on the front-rear position relation, the vibration device is instructed to perform vibration early warning on the relative running state according to the second configuration information.
In some possible embodiments, the second sub-configuration information includes first sub-configuration information for indicating left-side vibration of the vibration device and second sub-configuration information for indicating right-side vibration of the vibration device;
wherein a value of a first vibration index in the first sub-arrangement information and the second sub-arrangement information is linearly related to the front-rear relative distance, and a value of a second vibration index in the first sub-arrangement information and the second sub-arrangement information is linearly related to the relative speed;
when the first virtual vehicle is located at the left side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle are overlapped in the first direction, the value of the third vibration index in the first sub-configuration information is a preset value, and the ratio of the value of the third vibration index in the second sub-configuration information to the preset value is positively correlated with the overlapping ratio of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction; when the first virtual vehicle is located on the right side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle overlap in the first direction, the value of the third vibration index in the second sub-configuration information is the preset value, and the ratio of the value of the third vibration index in the first sub-configuration information to the preset value is positively correlated with the overlapping ratio of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction;
Wherein the first direction is perpendicular to a forward direction of the target virtual vehicle;
wherein the first vibration index, the second vibration index, and the third vibration index are different, and are each one of a vibration frequency, a vibration intensity, and a vibration duration.
In some possible embodiments, the target virtual vehicle is controlled by a first object, and the processor 1301 is further configured to:
determining a target scene type of a game scene selected by a first object in response to a selection operation of the first object;
according to fourth vibration information corresponding to the target scene type, the vibration device is instructed to perform vibration feedback on the target scene type;
and responding to the selection operation of the first object on the target virtual vehicle, and according to fifth vibration information corresponding to the target virtual vehicle, indicating the affiliated vibration device to perform vibration feedback on the virtual vehicle attribute of the target virtual vehicle.
In some possible embodiments, the processor 1301 is further configured to:
and in response to the acceleration condition being met in the running process of the target virtual vehicle, the vibration device is instructed to prompt the first object to operate the target virtual vehicle for acceleration according to sixth vibration information.
It should be appreciated that in some possible embodiments, the processor 1301 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory may include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type.
In a specific implementation, the electronic device 1300 may execute, through each functional module built in the electronic device, an implementation manner provided by each step in fig. 2, and specifically, the implementation manner provided by each step may be referred to, which is not described herein again.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored and executed by a processor to implement the method provided by each step in fig. 2, and specifically, the implementation manner provided by each step may be referred to, which is not described herein.
The computer readable storage medium may be the vibration interaction device provided in any of the foregoing embodiments or an internal storage unit of an electronic device, for example, a hard disk or a memory of the electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card) or the like, which are provided on the electronic device. The computer readable storage medium may also include a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (random access memory, RAM), or the like. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application provide a computer program product comprising a computer program for executing the method provided by the steps of fig. 2 by a processor.
The terms first, second and the like in the claims and in the description and drawings are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or electronic device that comprises a list of steps or elements is not limited to the list of steps or elements but may, alternatively, include other steps or elements not listed or inherent to such process, method, article, or electronic device. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments. The term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (12)

1. A method of vibration interaction, the method comprising:
in the running process of a target virtual vehicle, determining at least one potential running accident associated with the target virtual vehicle in a virtual running scene at a first moment according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment, and determining a first running accident with highest accident priority from at least one potential running accident;
Generating first vibration information for carrying out vibration early warning on the first driving accident according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment;
and according to the first vibration information, the vibration device is instructed to perform vibration early warning on the first driving accident after the first moment.
2. The method according to claim 1, wherein the method further comprises:
responding to a second running accident of the target virtual vehicle at a second moment, and determining second vibration information according to the accident type of the second running accident;
wherein, different accident types respectively correspond to different vibration information;
and according to the second vibration information, the vibration device is instructed to perform vibration feedback on the second driving accident at the second moment.
3. The method according to claim 2, wherein the method further comprises:
generating third vibration information according to the running state of the target virtual vehicle after the second running accident occurs;
after the vibration device performs vibration feedback on the second driving accident, according to the third vibration information, the vibration device is instructed to perform vibration prompt on at least one of the following:
The degree of change of the driving state of the target virtual vehicle before and after the second driving accident occurs;
and after the second running accident occurs to the target virtual vehicle, the target virtual vehicle is used for restoring the running mode of running.
4. A method according to claim 3, wherein the driving condition comprises a driving speed; when the third vibration information indicates that the vibration device performs vibration indication on the change degree of the running speed before and after the second running accident, the value of at least one vibration index in the third vibration information is linearly related to the change degree of the running speed before and after the second running accident of the target virtual vehicle;
wherein the vibration index includes a vibration frequency, a vibration intensity, and a vibration duration.
5. A method according to claim 3, wherein the driving style comprises a cornering style; when the third vibration information indicates the vibration device to carry out vibration prompt on a turning mode for restoring running, the value of at least one vibration index in the third vibration information is positively correlated with the turning angle;
wherein the vibration index comprises a vibration frequency, a vibration intensity and a vibration duration; the vibration position of the vibration device indicated by the third vibration information is kept consistent with the turning direction.
6. The method of claim 1, wherein the first vibration information includes first configuration information and second configuration information when the first driving accident is a potential virtual vehicle collision accident between the target virtual vehicle and a first virtual vehicle;
the first configuration information is used for indicating the vibration device to perform vibration early warning on the front-rear position relationship of the first virtual vehicle compared with the target virtual vehicle;
the second configuration information is used for indicating the vibration device to perform vibration early warning on the relative running state of the first virtual vehicle and the target virtual vehicle, and the relative running state comprises at least one of a front-back relative distance or a relative speed;
the step of instructing a vibration device to perform vibration early warning on the first driving accident after the first time according to the first vibration information includes:
according to the first configuration information, after the first moment, a vibration device is instructed to perform vibration early warning on the front-rear position relation of the first virtual vehicle compared with the target virtual vehicle;
and after the vibration device performs vibration early warning on the front-rear position relationship, the vibration device is instructed to perform vibration early warning on the relative running state according to the second configuration information.
7. The method of claim 6, wherein the second configuration information includes first sub-configuration information for indicating a left-side vibration of the vibration device and second sub-configuration information for indicating a right-side vibration of the vibration device;
wherein a value of a first vibration index in the first sub-configuration information and the second sub-configuration information is linearly related to the front-rear relative distance, and a value of a second vibration index in the first sub-configuration information and the second sub-configuration information is linearly related to the relative speed;
when the first virtual vehicle is positioned at the left side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle are overlapped in the first direction, the value of the third vibration index in the first sub-configuration information is a preset value, and the ratio of the value of the third vibration index in the second sub-configuration information to the preset value is positively correlated with the overlapping rate of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction; when the first virtual vehicle is positioned on the right side of the target virtual vehicle and the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle are overlapped in the first direction, the value of the third vibration index in the second sub-configuration information is the preset value, and the ratio of the value of the third vibration index in the first sub-configuration information to the preset value is positively correlated with the overlapping rate of the vehicle body of the first virtual vehicle and the vehicle body of the target virtual vehicle in the first direction;
Wherein the first direction is perpendicular to a direction of travel of the target virtual vehicle;
the first vibration index, the second vibration index and the third vibration index are different and are respectively one of vibration frequency, vibration intensity and vibration duration.
8. The method of claim 1, wherein the target virtual vehicle is handled by a first object, the method further comprising:
determining a target scene type of a game scene selected by a first object in response to a selection operation of the first object;
according to fourth vibration information corresponding to the target scene type, the vibration device is instructed to perform vibration feedback on the target scene type;
and responding to the selection operation of the first object for the target virtual vehicle, and indicating the affiliated vibration device to perform vibration feedback on the virtual vehicle attribute of the target virtual vehicle according to fifth vibration information corresponding to the target virtual vehicle.
9. The method according to claim 1, wherein the method further comprises:
and responding to the condition that the acceleration condition is met in the running process of the target virtual vehicle, and indicating the vibration device to prompt the first object to operate the target virtual vehicle for acceleration according to the sixth vibration information.
10. A vibration interactive apparatus, the apparatus comprising:
the information analysis module is used for determining at least one potential running accident associated with the target virtual vehicle in the virtual running scene at the first moment according to the virtual running scene at the first moment and the running state of the target virtual vehicle at the first moment in the running process of the target virtual vehicle, and determining a first running accident with the highest accident priority from the at least one potential running accident;
the information generation module is used for generating first vibration information for carrying out vibration early warning on the first driving accident according to the virtual driving scene at the first moment and the driving state of the target virtual vehicle at the first moment;
and the vibration indication module is used for indicating the vibration device to perform vibration early warning on the first driving accident after the first moment according to the first vibration information.
11. An electronic device comprising a processor and a memory, the processor and the memory being interconnected;
the memory is used for storing a computer program;
the processor is configured to perform the method of any of claims 1 to 9 when the computer program is invoked.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1 to 9.
CN202311391415.1A 2023-10-25 2023-10-25 Vibration interaction method, device, equipment and storage medium Active CN117122902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311391415.1A CN117122902B (en) 2023-10-25 2023-10-25 Vibration interaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311391415.1A CN117122902B (en) 2023-10-25 2023-10-25 Vibration interaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117122902A true CN117122902A (en) 2023-11-28
CN117122902B CN117122902B (en) 2024-02-09

Family

ID=88858457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311391415.1A Active CN117122902B (en) 2023-10-25 2023-10-25 Vibration interaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117122902B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11175766A (en) * 1997-12-05 1999-07-02 Namco Ltd Image generating device and information storage medium
JP2007300973A (en) * 2006-05-08 2007-11-22 Nintendo Co Ltd Program, information storage medium, and image forming system
CN103246346A (en) * 2012-02-10 2013-08-14 三星电子株式会社 Apparatus and method for controlling vibration transfer between vibration devices
CN105807922A (en) * 2016-03-07 2016-07-27 湖南大学 Implementation method, device and system for virtual reality entertainment driving
CN108837504A (en) * 2018-06-05 2018-11-20 网易(杭州)网络有限公司 Information processing method, device, equipment and storage medium in race games
CN110694274A (en) * 2019-10-15 2020-01-17 网易(杭州)网络有限公司 Method and device for predicting running state of virtual vehicle and electronic equipment
CN110955972A (en) * 2019-11-28 2020-04-03 苏州智加科技有限公司 Virtual scene generation method and device, computer equipment and storage medium
CN111968450A (en) * 2020-10-26 2020-11-20 成都运达科技股份有限公司 Dynamic control method, device and system for train driving simulator and storage medium
CN112997125A (en) * 2019-10-02 2021-06-18 克斯科株式会社 User game connection automatic driving method and system
CN113715817A (en) * 2021-11-02 2021-11-30 腾讯科技(深圳)有限公司 Vehicle control method, vehicle control device, computer equipment and storage medium
CN114225379A (en) * 2021-12-20 2022-03-25 努比亚技术有限公司 Game scene vibration regulation and control method, equipment and computer readable storage medium
CN114394109A (en) * 2022-02-16 2022-04-26 上海豪承信息技术有限公司 Driving assistance method, device, equipment, medium and program product
CN114683987A (en) * 2020-12-29 2022-07-01 现代自动车株式会社 Vibration generating method for vehicle
CN114924649A (en) * 2022-05-31 2022-08-19 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted entertainment method based on virtual driving, vehicle-mounted entertainment system and storage medium
CN115068929A (en) * 2022-05-30 2022-09-20 网易(杭州)网络有限公司 Game information acquisition method and device, electronic equipment and storage medium
US20220410925A1 (en) * 2021-06-24 2022-12-29 At&T Intellectual Property I, L.P. Coordinated Virtual Scenes for an Autonomous Vehicle
CN115531863A (en) * 2021-06-30 2022-12-30 深圳完美世界互娱有限公司 Method and device for prompting virtual event in virtual scene, storage medium and electronic device
CN116101193A (en) * 2021-11-11 2023-05-12 比亚迪股份有限公司 Vehicle, control method thereof, vehicle-mounted controller and readable storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11175766A (en) * 1997-12-05 1999-07-02 Namco Ltd Image generating device and information storage medium
JP2007300973A (en) * 2006-05-08 2007-11-22 Nintendo Co Ltd Program, information storage medium, and image forming system
CN103246346A (en) * 2012-02-10 2013-08-14 三星电子株式会社 Apparatus and method for controlling vibration transfer between vibration devices
CN105807922A (en) * 2016-03-07 2016-07-27 湖南大学 Implementation method, device and system for virtual reality entertainment driving
CN108837504A (en) * 2018-06-05 2018-11-20 网易(杭州)网络有限公司 Information processing method, device, equipment and storage medium in race games
CN112997125A (en) * 2019-10-02 2021-06-18 克斯科株式会社 User game connection automatic driving method and system
CN110694274A (en) * 2019-10-15 2020-01-17 网易(杭州)网络有限公司 Method and device for predicting running state of virtual vehicle and electronic equipment
CN110955972A (en) * 2019-11-28 2020-04-03 苏州智加科技有限公司 Virtual scene generation method and device, computer equipment and storage medium
CN111968450A (en) * 2020-10-26 2020-11-20 成都运达科技股份有限公司 Dynamic control method, device and system for train driving simulator and storage medium
CN114683987A (en) * 2020-12-29 2022-07-01 现代自动车株式会社 Vibration generating method for vehicle
US20220410925A1 (en) * 2021-06-24 2022-12-29 At&T Intellectual Property I, L.P. Coordinated Virtual Scenes for an Autonomous Vehicle
CN115531863A (en) * 2021-06-30 2022-12-30 深圳完美世界互娱有限公司 Method and device for prompting virtual event in virtual scene, storage medium and electronic device
CN113715817A (en) * 2021-11-02 2021-11-30 腾讯科技(深圳)有限公司 Vehicle control method, vehicle control device, computer equipment and storage medium
CN116101193A (en) * 2021-11-11 2023-05-12 比亚迪股份有限公司 Vehicle, control method thereof, vehicle-mounted controller and readable storage medium
CN114225379A (en) * 2021-12-20 2022-03-25 努比亚技术有限公司 Game scene vibration regulation and control method, equipment and computer readable storage medium
CN114394109A (en) * 2022-02-16 2022-04-26 上海豪承信息技术有限公司 Driving assistance method, device, equipment, medium and program product
CN115068929A (en) * 2022-05-30 2022-09-20 网易(杭州)网络有限公司 Game information acquisition method and device, electronic equipment and storage medium
CN114924649A (en) * 2022-05-31 2022-08-19 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted entertainment method based on virtual driving, vehicle-mounted entertainment system and storage medium

Also Published As

Publication number Publication date
CN117122902B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN111919225B (en) Training, testing, and validating autonomous machines using a simulated environment
US20240078363A1 (en) Virtual environment scenarios and observers for autonomous machine applications
Wang et al. Deep reinforcement learning for autonomous driving
JP7183273B2 (en) Autonomous vehicle software validation
US10453260B2 (en) System and method for dynamic in-vehicle virtual reality
US20180229742A1 (en) System and method for dynamic in-vehicle virtual reality
CN108602509A (en) The method and system of automatic driving vehicle is operated based on motion planning
CN114746323A (en) Simulation with modified factors for testing autonomous vehicle software
KR101880180B1 (en) Method for operation of driving simulator and driving simulator
CN114177613B (en) Navigation grid updating method, device, equipment and computer readable storage medium
Paranjape et al. A modular architecture for procedural generation of towns, intersections and scenarios for testing autonomous vehicles
Wong et al. Testing the safety of self-driving vehicles by simulating perception and prediction
CN117058730A (en) Dataset generation and enhancement for machine learning models
CN108837504A (en) Information processing method, device, equipment and storage medium in race games
CN115220227A (en) Augmented reality head-up display method and device and terminal equipment
CN117122902B (en) Vibration interaction method, device, equipment and storage medium
JP2007072224A (en) Driving simulator
CN113110487A (en) Vehicle simulation control method and device, electronic equipment and storage medium
CN112230565A (en) Method and device for simulating driving of vehicle, electronic equipment and computer-readable storage medium
JP2011197246A (en) Simulation device, program and information storage medium
CN114613160B (en) Lane use method, lane use device, computer equipment and storage medium
CN115268655A (en) Interaction method and system based on augmented reality, vehicle and storage medium
JP7268481B2 (en) Information processing device, autonomous vehicle, information processing method and program
US20240092390A1 (en) Virtual agent trajectory prediction and traffic modeling for machine simulation systems and applications
JP7333445B2 (en) image generator

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