What is a Behaviour Model?

 

To practice scripting and learning about Storyflow features, check out the Author Certification course in Motive Academy.

Brief description of what a Behavior Model is and how they work

Definition

A Behaviour Model is a set of states or behaviours inherent to a 3D asset. They are added to the asset using the Motive Unity SDK. They are useful when you need to be able to detect the state of an object (ex: open or closed) and use that state to progress in a Scenario.

Example

In the Motive Lab, we have a Gas Nozzle that is spurting flame. We have added the state “open” as a behaviour of the gas nozzle in Unity. This means when the (state = open) there is gas spurting from the bunsen burner and (state = not open) the gas and flame are out.

In Storyflow we can monitor this state and use it in the Scenario. For instance, we might want to check that the gas nozzle is turned off before the learner moves on to the next task.

Using Behaviour Models in StoryFlow

In order to be able to author using Behaviour Models, there are a few setup steps.

1. Create a Behaviour Model Catalog

 

 

2024-03-06_16-26-08.jpg

 

2. Add Behaviour Model Definitions to the Catalog

For each Behaviour Model that has been created in Unity with the SDK, you need to add it to your Catalog to be usable in Storyflow. Here is what the behaviour model definition would look like for the “Open” example:

 

2024-03-06_15-23-27.jpg

 

3. Use the behaviour model with a "Set Object State" resource

In this example, we want something to happen once the Gas Nozzel is in an opened state. We use a "Set Object State" Resource:

We choose the scene object and the state we want the learner to set the object to:

 

 

From here we can have this trigger the next action in a number of ways.

Up Next: Using a Variable with a Behaviour Model