Moving between Targets

Hello,

I’m making a very simple virtual environment for Oculus GO. The most important part of mentioning the GO is that I only have access to the one controller that comes with the GO.

It contains 3-4 inverted spheres with images mapped to the insides. I have a pawn with a camera that responds to VR head tracking.

I want users to be able to push the trigger to progress through the spheres and the thumb pad to return to the most recent sphere. That’s the only movement I want to give them.

As you can see in the blueprint below, I’m setting up targets at the center of each sphere and then using ‘Move Component To’ to “teleport” the pawn to the targets. The movement between Target point (which goes to the second sphere) and Target Point 2 (which returns to the first sphere) works perfectly fine. However, when I arrive at Target Point, I don’t know how to move to a third sphere using the trigger since it’s already acting as the command to move to the second sphere.

I’m not sure if there is some command that can reset the pawn’s state so if I hit the trigger twice it will send me from sphere one to sphere two and then sphere three. Does anyone have any ideas?

Any help would be greatly appreciated.

Add all your target Points to an Array. Set a counter int var to 0 and get the Array Item with this var and Teleport There
when you Press Trigger incrementthat Array and teleport. If you Press thumbpad decrement it and teleport. Check that the int is Not going below 0 (Array Elements start at 0)

Many thanks. I’ll give this a try!

That worked like a charm! Thank you so much!