(One intermediate revision by the same user not shown)
Line 3:
Line 3:
|Name=Radial Distance Haptic Filter
|Name=Radial Distance Haptic Filter
}}
}}
{{stub}}
The '''RadialDistanceHapticFilter''' controls haptic areas on the same slot so that haptics within their range are influenced differently depending on how far away they are from the slot center in local space. The start and end intensities when mapped to the haptic devices Distance from the slot, the power is unclamped.
== Usage ==
This works as part of the game's robust [[Haptics]] system.
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|StartRadius|Float|
|StartRadius|Float| The starting radius point (Usually 0 distance). When the haptic device point is this Distance away from the slot this component is on in local space, the haptic gets a signal of <code>Power</code>*<code>StartIntensity</code>
|EndRadius|Float|
|EndRadius|Float| The ending radius point (Usually 0 distance). When the haptic device point is this Distance away from the slot this component is on in local space, the haptic gets a signal of <code>Power</code>*<code>StartIntensity</code>.
|StartIntensity|Float|
|StartIntensity|Float| The intensity*<code>Power</code> for the haptic device when it is <code>StartRadius</code> from the slot this component is on.
|EndIntensity|Float|
|EndIntensity|Float| The intensity*<code>Power</code> for the haptic device when it is <code>EndRadius</code> from the slot this component is on.
|Power|Float|
|Power|Float| How much to amplify the intensity for the haptic device.
}}
}}
== Behavior ==
== Usage ==
Attach to a slot with a [[Component:HapticVolume]] for the simplest use case. Bringing a user's VR controllers closer or further away changes that device's haptics intensity.
== Examples ==
== Examples ==
Can be used to make an object have an aura that gets more intense as the user goes to grab it.
Radial Distance Haptic Filter component as seen in the Scene Inspector
The RadialDistanceHapticFilter controls haptic areas on the same slot so that haptics within their range are influenced differently depending on how far away they are from the slot center in local space. The start and end intensities when mapped to the haptic devices Distance from the slot, the power is unclamped.
This works as part of the game's robust Haptics system.
The starting radius point (Usually 0 distance). When the haptic device point is this Distance away from the slot this component is on in local space, the haptic gets a signal of Power*StartIntensity
The ending radius point (Usually 0 distance). When the haptic device point is this Distance away from the slot this component is on in local space, the haptic gets a signal of Power*StartIntensity.
How much to amplify the intensity for the haptic device.
Usage
Attach to a slot with a Component:HapticVolume for the simplest use case. Bringing a user's VR controllers closer or further away changes that device's haptics intensity.
Examples
Can be used to make an object have an aura that gets more intense as the user goes to grab it.