⚒️Create sensations

It is possible to create sensations using our Sensations Creator tool, but it is also possible to create them by code, this allows the developer to build and modify sensations in realtime.

Create a sensation and store it in a variable

var ball = SensationsFactory.Create(100, 0.1f, 100, 0, 0, 0);

Each of the above parameters refers to:

  1. Frequency (hz)

  2. Duration (sec)

  3. Intensity (%)

  4. Fade in (sec)

  5. Fade out (sec)

  6. Exit time (sec)

Assign muscles to an existing sensation

ball.WithMuscles(Muscle.Pectoral_R);

The above line of code generates a new SensationWithMuscles, once muscles have been asigned to a sensation, they won't change, it should be necessary to create a new SensationWithMuscles.

Modify the intensity percentage of the assigned muscles

wind.WithMuscles(Muscle.All.WithIntensity(70));

it is possible to change the intensity of a single muscle, a group of muscles, or even a group of muscles with different intensities per muscles:

ball.WithMuscles(Muscle.Arm_L.WithIntensity(20), Muscle.Arm_R.WithIntensity(5));

Append one or more sensations to create a sensations chain

daggerEntry.Append(bleeding);

This results in a combination of both sensations, each one could have different muscles assigned as well.

Assign a family to a baked sensation

bakedSensation.BelongsTo("MyFamily");

Last updated