The '''AxisDistanceHapticFilter''' multiplicatively changes the intensity of a [[Component:HapticVolume]] depending on the dot product from the vector of the device's position in local space to this component and <code>Axis</code>. Essentially the smaller the angle between the device local position from 0 direction and the <code>Axis</code> direction the smaller the distance.
This works as part of the game's robust [[Haptics]] system.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Axis|Float3|
|Axis|Float3| The axis to check distance from.
|StartDistance|Float|
|StartDistance|Float| The starting distance to map to <code>StartIntensity</code> for the intensity distance range.
|EndDistance|Float|
|EndDistance|Float| The ending distance to map to <code>EndIntensity</code> for the intensity distance range.
|StartIntensity|Float|
|StartIntensity|Float| When at <code>StartDistance</code> map the device intensity to this.
|EndIntensity|Float|
|EndIntensity|Float| When at <code>EndDistance</code> map the device intensity to this.
|Power|Float|
|Power|Float| How much to amplify the haptics effect in general.
}}
}}
== Behavior ==
== Usage ==
Attach to a slot with a valid and working [[Component:HapticVolume]] to add to the list of multiplicative haptic filters.
Axis Distance Haptic Filter component as seen in the Scene Inspector
The AxisDistanceHapticFilter multiplicatively changes the intensity of a Component:HapticVolume depending on the dot product from the vector of the device's position in local space to this component and Axis. Essentially the smaller the angle between the device local position from 0 direction and the Axis direction the smaller the distance.
This works as part of the game's robust Haptics system.