#include <JPLSpatial/Services/DirectPathService.h>
◆ FlatMapType
◆ DirectPathService() [1/2]
| JPL::DirectPathService::DirectPathService |
( |
| ) |
|
|
default |
◆ DirectPathService() [2/2]
◆ AssignAttenuationCurve()
Assign attenuation curve to source. The curve should not be owned by the user. attenuationFunction must be constructed with make_pmr_shared
◆ EvaluateDirection()
Evaluate direction angle using cone attenuation parameters assigned to the source. The value is cached internally and can be retrieved by calling GetDirectionAttenuation function.
- Parameters
-
| source | source to evaluate the curves for |
| directionDot | direction dot product relative to forward axis to evaluate |
- Returns
- 'true' if the source is valid, 'false' otherwise
◆ EvaluateDistance() [1/2]
Evaluate distance with all the curves associated with the source. The values are cached internally and can be retrieved by calling GetDistanceAttenuation function.
- Parameters
-
| source | source to evaluate the curves for |
| distance | distance to evaluate |
- Returns
- 'true' if the source is valid, 'false' otherwise
◆ EvaluateDistance() [2/2]
◆ GetDirectionAttenuation()
Get cone attenuation value for source relative to listener view. If the soruce is not found in the cache, 1.0f is returned
- Parameters
-
| source | source to get the value for |
- Returns
- last value evaluated for the source, or 1.0f if value is has not been evaluated yet
◆ GetDistanceAttenuation()
Get distance attenuation value for source evaluated from the curve. If either the soruce or the curve is not found in the cache, 1.0f is returned
- Parameters
-
| source | source to get the value for |
| curve | curve created by calling CreateAttenuationCurve function |
- Returns
- last value evaluated from the curve for the source, or 1.0f if value is has not been evaluated yet
◆ InitializeDirrectEffect()
◆ operator=()
◆ ProcessAngleAttenuation() [1/2]
◆ ProcessAngleAttenuation() [2/2]
◆ ProcessDirectPath()
Compute direct path parameters based on position of the soruce and listener. This can be used to compute parameters for position of a source relative to listener, as well as position of the listener relative to a source.
- Parameters
-
| position | position to compute parameters for, in world space |
| referencePoint | reference point to compute parameters from, in world space |
- Returns
- paramteres of the position relative to the reference point
Assuming Y axis is UP-DOWN
◆ ReleaseEffectData()
Release any data associated with the source handle.
- Returns
- true if anything was cleared, false if no data was associated with the handle
The documentation for this class was generated from the following file: