Menu
Lumberyard
User Guide (Version 1.13)

Adding Force Feedback

Force feedback (also known as haptics) refers to the activation of gyros and actuators in game controllers and rumble chairs. This can be used for anything ranging from subtle heartbeats, to earthquake rumbling, to weapon recoil, to explosions.

Using the Track View Editor for Force Feedback

You can add force feedback rumble tracks to your cutscene using the Track View editor. Two variables are needed—one for the low-frequency motor, and one for the high-frequency motor of the game device.

To add force feedback using the Track View editor

  1. In the Track View editor, right-click in the tree pane, click Add Script Variable, and name it something like Cinematic_Rumble_Low.

  2. Repeat Step 1, giving the second script variable a different name, such as Cinematic_Rumble_High.

  3. Select the applicable sequence, then click the Edit Sequence button.

  4. In the Sequence Properties box, select the Cut Scene check box.

  5. For each variable, adjust the values by moving the sliders in the graph from 0 (off) to 1 (maximum).

    Note

    Lumberyard clamps the value to 1, even though the slider goes higher.

You can also use the Curve Editor to fine tune the rise and fall of the rumble effect. Keep in mind that external device gyros and actuators need a bit of time to get going and to fully stop.

Using Flow Graph for Force Feedback

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn more about legacy features, see the Amazon Lumberyard Legacy Reference.

You can also use Flow Graph to add rumble effects using the following nodes:

  • Game:ForceFeedback

  • Game:ForceFeedbackTweaker

  • Game:ForceFeedbackTriggerTweaker

To add force feedback using Flow Graph

  1. In the Flow Graph editor, expand the Game node.

  2. Right-click in the graph, then click Add Node, Game, ForceFeedbackTweaker.

  3. Adjust the values of the LowPass and HighPass inputs. Valid values range from 0 (off) to 1 (maximum).

    Note

    Lumberyard clamps the value to 1, even though the slider goes higher.

You can also use the Curve Editor to fine tune the rise and fall of the rumble effect. Keep in mind that external device gyros and actuators need a bit of time to get going and to fully stop.