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"

Magnetometer or Heading / Compass values on iOS 11?

Hi all,

I'm trying to get values or calculate an equalivalent type value to determine which direction (compass degrees) the user is facing and holding their device towards, so I can orient the game world along their relevant axis.

It seems like this would be fairly simple to do based of the readings from the iphone magenetometer or compass heading, but I can't seem to find any documentation about accessing or calling those features in UE.

Does anyone have any tips for where to begin approaching this? I figure the answer will stretch beyond blueprints, but I'm curious how involved this could become?

Thanks for the help in advance

Product Version: UE 4.17
more ▼

asked Sep 24 '17 at 10:02 PM in Using UE4

avatar image

31 2 4 9

avatar image Emixam Apr 16 '18 at 03:19 PM

Bump, I'm also looking for a way to find the true north

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

1 answer: sort voted first


can someone tell me why are there almost no valuable Information about this topic? It seems like nobody can answer this question. I searched for hours and nowhere I can find some answer leading in a possible direction. But I found some links which are interesting, although I´m sure that anybody who wants to know how we can access the Compass will get to this sooner or later. It´s kind of sobering.

User F3NR1S developed a plugin but iOS is still pending: https://wiki.unrealengine.com/Magnetic_Field_Toolkit and https://forums.unrealengine.com/unreal-engine/marketplace/1437192-magnetic-field-toolkit

Apple Dev: https://developer.apple.com/documentation/corelocation/getting_heading_and_course_information and https://developer.apple.com/documentation/corelocation/clheading

Medium article about a compass app: https://medium.com/swiftly-swift/how-to-build-a-compass-app-in-swift-2b6647ae25e8 (But I don´t know how to get access to Swift from Unreal )

How would be the common workflow to execute SwiftCode in Unreal C++?

EDIT: I found a post as a feature request since 4.9 : https://answers.unrealengine.com/questions/302555/feature-request-add-magnetometer-support-for-mobil.html

more ▼

answered Mar 29 '19 at 11:46 AM

avatar image

51 3 6

(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