Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AI Move To VR

I am trying to create a pet that can follow you around the map but I am having trouble using the AI Move To function because I trying to use it for VR. I think I have to do something with the motion controllers but i am not sure can anyone help with a basic example.

Product Version: UE 4.17
more ▼

asked Apr 04 '18 at 08:42 PM in Blueprint Scripting

avatar image

46 5 12 10

avatar image gk0r Apr 05 '18 at 12:52 PM

What is the actual problem? Your description is not very helpful. It could be anything. Do you want to upload some code or at least attach some screenshots? It could be something as silly as you not adding Navigation volume to the map, but there is no way of telling that without you providing something for us to work with.

avatar image Panos98 Apr 05 '18 at 02:43 PM

This is the blueprint I have left from testing trying to make the pet move alt text

ai.png (89.3 kB)
avatar image Panos98 Apr 05 '18 at 02:45 PM

This whole AI move to has just confused me completely so if I am really of course I wont be surprised, all i want it to do is make my object follow my VRPawn in the level

avatar image gk0r Apr 06 '18 at 09:57 AM

I would recommend using Behavior Trees for this kind of stuff. Read this documentation and you will have everything you need.

avatar image Panos98 Apr 06 '18 at 11:22 AM

I will give it try thanks

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Using AI Move to turns out was not the best approach for my issue. I fixed my issue by using a timeline and setting my actors location that way.

more ▼

answered Apr 18 '18 at 04:25 PM

avatar image

46 5 12 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

In VR your pawn location is not where the VR player is - it's the root of roomscale. So you may well be sending your actor/pawn into the moveto. Instead, get the location of the camera from your VR pawn and moveto that location rather than the actor. I would start by drawing a debug sphere or similar where you think your VR Pawn is to verify you have understood the setup you're using, then make sure you feed that location into the AI.

more ▼

answered Apr 04 '18 at 08:52 PM

avatar image

368 3 7 20

avatar image Panos98 Apr 04 '18 at 09:04 PM

I tried what you suggested but its just not working for me, I cant figure out what i am doing wrong

avatar image SHAINPAIN Jul 05 '18 at 06:59 PM

So I'm using the Get Player Camera Manager as the Target Actor for my AI MoveTo and in VR, the AI moves to a position where its overlapping with the camera. Even with the Acceptance Radius being changes from 50 to 200 or whatever, the AI still arrives at the same place. Any advice?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question