Statechart

The statechart is defined as a json document according to Xstate formalism.

In addition, the following customized actions can be defined:

  • "ActionShow" ("show") to make appear the asset "target" in a given place. Additional attributes are: "position" (array), "rotation" (array), "placementRelTo" (string), "delay" (milliseconds as integer).

  • "ActionMoveTo" ("moveTo") to move the asset "target" to a given place. Additional attributes are: "position" (array), "rotation" (array), "placementRelTo" (string), "delay" (milliseconds as integer), "duration" (milliseconds as integer).

  • "ActionMoveAdditive" ("moveAdditive") to move the asset "target" incrementally from the current place. Additional attributes are: "position" (array), "rotation" (array), "delay" (milliseconds as integer), "duration" (milliseconds as integer).

  • "ActionSurfaceVelocity" ("surfaceVelocity") to set the surface velocity of asset "target". Additional attributes are: "velocity" (array), "delay" (milliseconds as integer).

  • "ActionGenerateAsset" ("genAsset") to generate a new asset modeled after the asset "target". Additional attributes are: "position" (array), "rotation" (array), "placementRelTo" (string), "delay" (milliseconds as integer).

  • "ActionSetRepresentation" ("setRepresentation") to set the representation (3D model) of the asset "target". Additional attributes are: "repr" (string), "delay" (milliseconds as integer).

  • "EventGeneration" ("sendEvent") to generate an event "target". Additional attributes are: "delay" (milliseconds as integer).

Last updated

Was this helpful?