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"

Accelerometer / Gyroscope support iOS/Andoid

I was wondering if there is a blueprint or Cpp way to use accelerometer or gyroscope data on mobile devices... I currently build a game that also needs something like this. So question is are there plans or do we develop it our own? :)

Product Version: Not Selected
Tags:
more ▼

asked May 29 '14 at 07:36 PM in Blueprint Scripting

avatar image

Vasco Wollschläger
92 8 10 11

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

4 answers: sort voted first

Yes engine support those. In engine terms this is called "Motion", so search with this key word and you should find nodes and APIs related to that. Motion controls combines all sensors so you can't get individual data from Accelerator or Gyroscope, you would need to do some external C++ calls for that.

more ▼

answered May 29 '14 at 09:12 PM

avatar image

Shadowriver
37.2k 936 172 1116

avatar image pleaseluggage Mar 26 '15 at 01:59 AM

alt text

vfmobyb.png (173.5 kB)
avatar image aimini Feb 23 '17 at 08:14 AM

Solved my problem,Thanks Shadowriver !

avatar image samdax Feb 05 '19 at 08:26 AM

Thanks! you save lot of time to me :) works perfectly!

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

Thanks! I haven't looked in here quite a while and figured already myself. Even my solution is a little different (I will also try yours to see where they differ).

more ▼

answered Mar 26 '15 at 02:34 AM

avatar image

Vasco Wollschläger
92 8 10 11

avatar image 3skel Jan 02 '18 at 09:19 PM

Hi, i'm new of this amazing forum! I'm trying to use Motion State (Tilt) with BP posted by pleaseluggage and it work but the view on my Android Phone is very unstable and shak. On the forum I read that it's resolvable with LAG on camera (but i don't find LAG palette) or manualy with "FInterp to" but i'm not able to use. Anyone can help me?

avatar image Himik-UNREAL Feb 18 '18 at 08:05 AM

Hello. Could you tell me please, as considered data with sensors (gyroscope, accelerometer....) mobile device on Android. Unfortunately the Official documentation on this issue is not found on your website and all the possible ways to access the forum on my device didn't work. Using unreal 4.18.3, HTC desire 530 version of Android 6.0.1. In advance thank you for the answer. It would be great to get instructions from you or an example of how it works.

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

Hi, I have been trying to get this to work for IOS for a couple of days with no prevail. But I actually got it to work after going in circles. and I just want to post an update on how I got it to work. So my first initial problem was that I tried to control a pawn with just a camera, I tried all of the solutions I could find on forums, but it was either working in just left/right and up down was buggy or it didn't work at all.

when it worked for me was when I created a new FPS project and added the BP underneath inside the FirstPersonCharacter BP. I just wanted to post my "solution" so that others don't do the same as me.

alt text

lookaround.png (85.3 kB)
more ▼

answered Oct 16 '18 at 08:22 AM

avatar image

Patrickimpact
6 1

avatar image mightyenigma Oct 26 '18 at 08:00 PM

I have never gotten any readings that would correspond to Yawing the phone, just pitching, rolling, or shaking it, when I do this on my Android.

avatar image kevinnavarroalon Dec 21 '18 at 01:55 PM

OMG!! it worked on my ThirdPerson Plattform Game!!! you really made my day mate!! thanks so much

avatar image Patrickimpact Dec 21 '18 at 03:13 PM

Glad to hear it! :D

avatar image TheoT Jan 23 '19 at 02:29 PM

Thanks Patrickimpact, this is a peculiar solution but it does work!

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

the camera was inverted so...alt text

dz.png (447.9 kB)
more ▼

answered Dec 21 '18 at 04:58 AM

avatar image

kevinnavarroalon
1 1

(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