Method and apparatus for simulating sound in virtual scenario, and terminal
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsYi Yan, Weilin Zhang, Wenyong Zhao
Life of this patent
Estimating the term…
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.
Claims15
(canceled)
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.
(canceled)
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.
(canceled)
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.
Dependencies are inferred from the claim text.