Configure One Object to be Used On Another
In depth learning on Usable World Objects is found in this course in Motive Academy.
In this example we want to use one Object to touch another Object. Then, you can use Storyflow to author this interaction between the Objects and allow your Scenario to progress.
There are two Objects:
Cube - The Object that will be touched
Sphere -The Object used to touch the Cube
Cube Configuration
Add a Cube to your Scene
Position Cube in a location that is easily reachable
In the Hierarchy, right click on the Cube and select Motive > Make Scene Object
In the Inspector, set the following values on Cube components:
Box Collider
Field | Value |
---|---|
Is Trigger | true |
Motive Scene Object
Field | Value |
---|---|
Name | TouchCube |
You can use whatever name you prefer
The Cube is now properly configured to be detected when another Object touches it
Sphere Configuration
Add a Sphere to your Scene
Position the Sphere in a location that is easily reachable
In the Hierarchy, right click on the Sphere and select Motive > Usable Actions > Touch Other Object
Right click on the Sphere and select Motive > Make Scene Object
These two actions will add several components to your Sphere. You only need to give the Motive Scene Object a name for this basic example.
Motive Scene Object
Field | Value |
---|---|
Name | UsableSphere |
You can use whatever name you prefer
The Sphere can now be picked up by the user. When the user touches the Cube (or any other Object which is similarly configured) with the Sphere, this Event can be recognized by a Storyflow Script.
Storyflow Usage
Because both the Cube and the Sphere have Motive Scene Object components, they can be added to a Named Object Catalog in a Storyflow Project.
In a Storyflow Script:
Use the Use Tool Resource and select the Cube for the World Object
Sphere for the Use Tool Object:
Related Articles