Component:AxisDistanceHapticFilter

From Resonite Wiki
Component image 
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.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Axis Float3 The axis to check distance from.
StartDistance Float The starting distance to map to StartIntensity for the intensity distance range.
EndDistance Float The ending distance to map to EndIntensity for the intensity distance range.
StartIntensity Float When at StartDistance map the device intensity to this.
EndIntensity Float When at EndDistance map the device intensity to this.
Power Float How much to amplify the haptics effect in general.

Usage

Attach to a slot with a valid and working Component:HapticVolume to add to the list of multiplicative haptic filters.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also