Api Sandbox HapticEffect
class

HapticEffect

public class HapticEffect

Contains a haptic effect, which consists of patterns for the controller and triggers.

Constructors

HapticEffect(HapticPattern controllerPattern, HapticPattern leftTriggerPattern, HapticPattern rightTriggerPattern)

Properties

Name Type Description
AmplitudeScale Single
FrequencyScale Single
LengthScale Single
SoftImpact static HapticEffect A haptic pattern that represents a light, soft impact.
HardImpact static HapticEffect A haptic pattern that represents a hard, sudden impact.
Rumble static HapticEffect Applies a simple rumble to the controller.
RumbleLeftTrigger static HapticEffect Applies a simple rumble to the left trigger.
RumbleRightTrigger static HapticEffect Applies a simple rumble to the right trigger.
Heartbeat static HapticEffect A haptic effect that feels like a heartbeat.

Methods

virtual HapticEffect <Clone>$()

Fields

Name Type Description
ControllerPattern HapticPattern
LeftTriggerPattern HapticPattern
RightTriggerPattern HapticPattern
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.HapticEffect