Method and apparatus for simulating sound in virtual scenario, and terminal
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method and an apparatus for simulating a sound in a virtual scenario, and a terminal. The method includes: determining whether a virtual object is in a falling state; detecting, when the virtual object is in the falling state, whether a virtual object collides with another virtual object in a virtual scenario; and invoking sound data when the virtual object collides with the another virtual object, and simulating a sound according to the invoked sound data.
39 Citations
15 Claims
-
1. (canceled)
-
2. A method for simulating a sound in a virtual scenario, comprising:
-
at a terminal having one or more processors, and a memory storing programs executed by the one or more processors; determining whether a virtual object in a virtual scenario is in a falling state; detecting, when the virtual object is in the falling state, whether the virtual object collides with another virtual object in the virtual scenario; invoking sound data when the virtual object collides with the another virtual object; and simulating a sound according to the invoked sound data, wherein the invoking sound data when the virtual object collides with the another virtual object comprises; detecting, when the virtual object collides with the another virtual object, a collision speed at a perpendicular collision area generated when the virtual object collides with the another virtual object; and invoking predetermined collision sound data if the collision speed at the perpendicular collision area is greater than a predetermined minimum collision speed; and the simulating a sound according to the invoked sound data comprises;
simulating a collision sound according to the invoked collision sound data. - View Dependent Claims (3, 4, 5)
-
-
6. (canceled)
-
7. A terminal, comprising:
-
one or more processors; a memory; and one or more program modules stored in the memory and configured for execution by the one or more processors, the one or more program modules located within an apparatus for simulating a sound in a virtual scenario, comprising; a falling determining module, configured to determine whether a virtual object is in a falling state; a collision detection module, configured to detect, when the virtual object is in the falling state, whether the virtual object collides with another virtual object in a virtual scenario; and a sound simulation module, configured to invoke sound data when the virtual object collides with the another virtual object, and simulate a sound according to the invoked sound data, wherein the sound simulation module comprises; a first detection unit, configured to detect, when the virtual object collides with the another virtual object, a collision speed at a perpendicular collision area generated when the virtual object collides with the another virtual object; a first sound data invoking unit, configured to invoke predetermined collision sound data when the collision speed at the perpendicular collision area is greater than a predetermined minimum collision speed; and a first sound simulation unit, configured to simulate a collision sound according to the invoked collision sound data. - View Dependent Claims (8, 9, 10)
-
-
11. (canceled)
-
12. A non-transitory computer readable storage medium having stored therein one or more instructions, which, when executed by a terminal, cause the terminal to:
-
determine whether a virtual object in a virtual scenario is in a falling state; detect, when the virtual object is in the falling state, whether the virtual object collides with another virtual object in the virtual scenario; invoke sound data when the virtual object collides with the another virtual object; and simulate a sound according to the invoked sound data, wherein the invoking sound data when the virtual object collides with the another virtual object comprises; detecting, when the virtual object collides with the another virtual object, a collision speed at a perpendicular collision area generated when the virtual object collides with the another virtual object; and invoking predetermined collision sound data if the collision speed at the perpendicular collision area is greater than a predetermined minimum collision speed; and the simulating a sound according to the invoked sound data comprises;
simulating a collision sound according to the invoked collision sound data. - View Dependent Claims (13, 14, 15)
-
Specification