x

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"

Object movement using ARCore

hey there, I'm working on an AR project using unreal blueprints and ARCore. so far many things have gone pretty good till the point whenn I found it almost impossible to make an object move from one place to another using hit position. I found a way to do it in Unity but that would require me to remake the project allover again from the start. so is there anyway to do that even by using c++ code?

the link to the tutorial of exactly what I want to do in Unreal: https://youtu.be/n4GYFthc1As

Product Version: UE 4.21
Tags:
more ▼

asked Mar 22 '19 at 11:08 AM in Blueprint Scripting

avatar image

Mohanad Osama
6 1 1

avatar image MrMcKvarz Mar 22 '19 at 01:43 PM

How are you using hit position, is your object suppose to move where the user points on the screen?

avatar image Mohanad Osama Mar 22 '19 at 07:25 PM

yes, I want the object to move from a point to another where the player touch on the screen (which is reflected to the real world space)

avatar image MrMcKvarz Mar 25 '19 at 08:42 AM

If you have a spawned object I assume you spawn it using trace. Can you post your code or blueprints which doesn't work?

avatar image Mohanad Osama Mar 28 '19 at 04:17 PM

I'm typically using the HelloAR blueprint example didn't change the blueprint till now

avatar image MrMcKvarz Mar 28 '19 at 04:32 PM

You'll need to modify that spawn trace used in the example to trace your spawned object, and when you hit one you enter a moving mode. You store the object you traced, then trace through it to find a plane, find hit position of that plane and interpolate current object position with that hit point.

avatar image Mohanad Osama Mar 28 '19 at 05:44 PM

that seem like a good plan but i'm still quite new to AR so I don't know what to do exactly like how to make it trace my object and how to make it switch to moving instead of pawning new objects

avatar image MrMcKvarz Mar 29 '19 at 09:37 AM

I don't have a working solution for this in bp, only in c++, I can post some bits from it if that would help.

avatar image Mohanad Osama Mar 29 '19 at 12:04 PM

any help would be great at this point.

avatar image MrMcKvarz Mar 29 '19 at 04:34 PM

Here I don't trace once I found the object, I use users swipe to move object instead. In GetPointARGeometry you just convert screen position to world and trace as in WorldHitTest. link text

avatar image Mohanad Osama Mar 31 '19 at 12:06 AM

I really can't thank you enough for your help

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

0 answers: sort voted first
Be the first one to answer this question
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