///////////////////////////////////////////////////////
| 259 | |
| 260 | //////////////////////////////////////////////////////////// |
| 261 | Vector3f SoundSource::getVelocity() const |
| 262 | { |
| 263 | if (const auto* sound = static_cast<const ma_sound*>(getSound())) |
| 264 | { |
| 265 | const auto velocity = ma_sound_get_velocity(sound); |
| 266 | return {velocity.x, velocity.y, velocity.z}; |
| 267 | } |
| 268 | |
| 269 | return {}; |
| 270 | } |
| 271 | |
| 272 | |
| 273 | //////////////////////////////////////////////////////////// |