Friday, July 29, 2022
HomeGame Development2nd - Audio emission from a polygon as a substitute of a...

2nd – Audio emission from a polygon as a substitute of a degree


I am creating a 2D sport in Godot. The engine would not matter on this case.

Given a polygon, convex or concave, and a listener (digicam) location, what 2D place ought to an audio emitter be positioned at to simulate audio coming from your entire polygon uniformly? The audio shall be directional, and quantity is mechanically modified based mostly on distance to the listener (digicam). One problem I anticipate is the case the place the listener is partially surrounded by the polygon, however not inside it.

The polygon on this case could also be convex or concave. Instance use instances embrace:

  1. Audio from a river (encapsulate the entire river inside the polygon)
  2. Audio from a big zone/space, akin to waves from the ocean, or animals from a forest
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments