Info |
---|
For an overview of Resources, click here. |
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Deep Learning on Resources is found in Motive Academy. Click here to see the course this lesson is in. |
Table of Contents |
---|
Overview
Select Object from Interaction has a very specific use case. If there is an object in the scene Scene that contains several of the same types of thing, but you want to specifically target the item that the learner interacted with, this is the resource Resource you need.
Example: In a food safety scenario Scenario there was a step where the learner needed to pull a test strip from a dispenser to test the concentration of their sanitizer. We couldn’t be sure that they would use the first test strip that they chose and if they threw a few on the floor before testing, we did not want them to all change color when the one their hand was dipped in the solution. In this case, we used the “Select Object from Interaction” resource Resource to indicate that the one that was in their hand should be the one that reacts to the next step.
Another example: In the Motive Lab, we have a group of glassware items. For this task, the learner must pick up each piece of glassware, rinse it 3 times with purified (deionized) water and then put it away on the shelf. As an author, you can not predict which glassware item the learner will pick up first. To account for this, you can use the “Select Object from Interaction” resourceResource. This resource Resource waits for the learner to interact with an item and sets that as the “active” prop in the sceneScene. You can see this example at the bottom of this article.
Required Fields
...
Field Name | Description |
---|---|
World Object | Set the object that is currently being interacted with to the world object targeted in this field. |
Events
Example in the Headset
...
In the Motive Lab, the learner is to pick up various glassware pieces and rinse them three times each with water. We are going to use two scripts to run this task, though it could be done in one.
The Select Object from Interaction is added into a frame and all the glassware is added:
...
Throughout the
...
Script, when there is an option for a Target or World Object, the Select Object from Interaction is used:
...
When the scripting is done, this is what it would look like in the headset:
...
View this video in full screen on Vimeo at this link.