Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field Name

Description

Target

The Motive scene Scene object you will apply the behavior model to.

Behavior Model

Defined in the Unity SDK, added to a behavior model Catalog - usually is a list of states, can also be "True" or "False".

...

In the Motive Lab, I want to clean up a spill in the lab. I’ll use the Behaviour Model Resource to change the state of the towel as I use it.

  1. In the first frame, I’ll add the Scene objects I need to use through this Script:

...

  1. In the next Frame I’ll add the Behaviour Model Resource and choose the Towel as the Target. The Assemblers have set up a Behaviour Model for the Towel, so I will choose that as well. Under “Activity” I’ll choose the Towel State and this will create a Variable:

...

  1. Next, I’ll add instructions for the learner:

...

  1. Now I’ll create a child Frame and add the Use Tool and Grasp Resources:

...

  1. When the towel is grasped (and closed), I’ll add in the Variable for Towel State. This was set up when I chose the Towel State in the Behaviour Model Resource above. I’ll choose the “In Use Dry” state as that is what the towel is doing at this point in the Script:

...

  1. When the Spray bottle has sprayed the spill, I’ll use a Place Resource to place the towel on the spill:

...

  1. When the towel is wiping I will play a Notification letting the learner know what is happening:

...

  1. In the final Frame when the Notification closes, the spill will disappear (via a Set Object Properties resource) and I will again add in the Towel State Variable. This time I will choose “In Use Wet” as the towel is wet from cleaning the spill:

...

This is what the Frame structure will look like for the above scripting:

...