nw::snd::Sound3DActor::SetVelocity Member Function

Syntax

#include <nw/snd/snd_Sound3DActor.h>

void SetVelocity(
     const nw::math::VEC3 & velocity
);

Arguments

Name Description
in velocity Actor velocity.

Return Values

None.

Description

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.

See Also

GetVelocity
SetPosition

Revision History

2010/02/15
Initial version.

CONFIDENTIAL