#include <nw/snd/snd_Sound3DActor.h>
void SetVelocity(
const nw::math::VEC3 & velocity
);
| Name | Description | |
|---|---|---|
| in | velocity |
Actor velocity. |
This function sets an actor's velocity.
The set velocity is reflected in pitch changes, in accordance with the Doppler effect.
Although the velocity of a 3D sound actor is automatically set from the difference with the previously registered coordinates when the actor's coordinates are set by nw::snd::Sound3DActor::SetPosition, by using this function the velocity of a 3D sound actor can be set manually.
CONFIDENTIAL