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 it 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 it 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 and the sphere for the Use Tool Object.