Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
In depth learning on Usable World Objects is found in this course in Motive Academy. |
In this example we want to use one object Object to touch another objectObject. Then, you can use Storyflow to author this interaction between the objects Objects and allow your scenario Scenario to progress.
...
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
There are two objectsObjects:
Cube - The object Object that will be touched.
Sphere -The object Object used to touch the cube.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 Cube is now properly configured to be detected when another object 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 sphereSphere. 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 Sphere can now be picked up by the user. When the user touches the cube Cube (or any other object Object which is similarly configured) with the sphereSphere, this event Event can be recognized by a Storyflow scriptScript.
Storyflow Usage
Because both the cube Cube and the sphere Sphere have Motive Scene Object components, they can be added to a Named Object catalog Catalog in a Storyflow projectProject.
In a Storyflow script, use the “Use Tool” resource Script:
Use the Use Tool Resource and select the
...
Cube for the World Object
...
Sphere for the Use Tool Object
...
:
...