TL;DR ------> Anyone got a working mobile player and camera with motion sensors in the iOS devices I can peek at?
So for about a week I’ve been trying to piece together just how to build a player control where on mobile I can look around with the device and my camera would react accordingly. This has revolved mostly around getting the inputs mapped out, which I’ve done and setting up blueprints, which is where I’m stuck. I started with this thread and was able to replicate the readouts just fine.
I’m on 4.7.2 so I would image all bugs to get this done have been squashed on iOS.
I can get the realtime and input tilt from a few different techniques. Many of you have helped with offering thoughts in how you yourselves put it together but I just can’t seem to replicate your nodes and since I’m on iOS and not android, some networks just don’t react. They seem very large. compared to mouse input, I’m surprised this is so laborious
So some questions: (Please excuse my ignorance. I come from VFX and design, so not a programming mind)
First off, if anyone has a project I could look at which works on your end, I’d love to see it. Could save people typing. But I understand your IP is precious, so I’m not going to beg.
1: This magical Get Motion Input State… I’ve gotten as far as breaking the tilt vectors out, but when I plug itin somewhere? Where?
- If I use Get Tilt or input tilt from my mappings in project settings, the map does indeed tilt as my device asks, but it goes crazy. I thought tilt in ios was in radians. So I shouldn’t have to translate, should I?
3: One of the thoughts I had was do mappings for Tilt, Rotation Rate and gravity to replicate motion in Roll Pitch and Yaw but again, mapping to Add Controller XXX Input makes things unstable. I switched them into every conceivable combination and got gimble lock a few times. I’ve also done this to my level and player and playter controller to varying levels of success. (but mostly vomit inducing failure)
So in summary: Help?
Thank you friends. I wish I was more help to you atm that you have been to me.