arrows-rotate-reverse2.4 Removing the nozzle

Now that we have arrived at the pump, we want to disassemble it properly.

We will start by removing the pump’s hose attachment. In reality, this component is to be unscrewed.

To reproduce this process, select the hose attachment in the viewport and launch the URealXR tool.

Next, go to the Transformer tab and under Transformers, select Turnable.

circle-info

For all CAD models that need to be rotated by hand in VR or screwed using various tools, we select Turnable as the transformer type.

Now, in the Slot Name field, enter a name that clearly identifies the object.

In our case, we will use hose.

This name will link the object—after converting—to the location where it was originally screwed in.

We will leave all other parameters at their default values for now.

Finally, click the Spawn button.

You have now turned a CAD 3D element into an interactive object in VR.

To enable the function of unscrewing the hose attachment, you still need to activate it in the Tasklist Editor, just like you did previously with the waypoints.

Go to the Tasklist Editor and create a new section.

In general, it is a good practice to always create a new section whenever the type of interaction fundamentally changes.

Click the Add Section button.

Open the new section and enter a meaningful description in the Monitor Section Text and the Timer section title field to describe what this section is about.

Now we will add a task to the section. Press the blue button "add task"

A task is always required in order to link the corresponding actor(in our chase the hoze) to that specific task.

Expand the Task section by clicking on the blue area, and use the Monitor Task Text and Timer Task title field to describe the task.

Now we will link the task to the created Hoze Actors.

To do this, look on the right side under the Unused section and click to expand it.

Below, you will see the hoze (BP_Slot_Turnable) waiting to be linked.

Left-click once on the hoze (BP_Slot_Turnable) and drag it onto the green icon labeled "create actor assignment". Click again to complete the process.

The result should look like this.

In the final step, you need to define in the task what the user must do to complete it.

Since the hose attachment needs to be removed, select Disassembly from the dropdown menu.

You have now successfully completed another step of your VR application.

Try out the result in VR!

Last updated