Method GetImpulseAt
GetImpulseAt(Vector3, bool, int, out Vector3, out Quaternion)
Get the signal perceived by a listener at a given location
Declaration
public bool GetImpulseAt(Vector3 listenerLocation, bool distance2D, int channelMask, out Vector3 pos, out Quaternion rot)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | listenerLocation | Where the listener is, in world coords |
bool | distance2D | True if distance calculation should ignore Z |
int | channelMask | Only Impulse signals on channels in this mask will be considered |
Vector3 | pos | The combined position impulse signal resulting from all signals active on the specified channels |
Quaternion | rot | The combined rotation impulse signal resulting from all signals active on the specified channels |
Returns
Type | Description |
---|---|
bool | true if non-trivial signal is returned |