Accelerometer

Is there a way to find out how fast a person is moving their iPhone?

You could check the accelerometer results over time although that won’t help you figure out speed per se but rather acceleration. Reading the GPS location is probably the best bet if the distance you want to figure the speed for is large enough.

Does Unity automatically provide the accelerometer/touch data all the time so you can access them via the javascript-scripting or do you have to program in Xcode for that?

Thx

It’s available in the scripting language. No need to go to XCode.

Thx Lostlogic, I checked the manual and there it’s very well explained, too. Unity iPhone seems more and more like a non-plus-ultra to me… I wonder if there’s anything you really can’t do with Unity on iPhone… :slight_smile:

For the last few years I always had the approach to code as much as possible by myself. I never wanted to use frameworks or engines, until some years ago, when I became a successfull Ruby on Rails webdeveloper. RoR is absolutely mindblowing. Piece for piece, I changed my mind. One day, I read a quote from a cool developer who got the point by saying ‘If you always want to abandon frameworks, simplifications - why are you using C++ instead of a HEX-Editor right now?’.

With this in mind, I came to Unity :slight_smile: I think as long as the simplifications are really tough, they should be used. Atm I’m thinking about a map editor in Unity? Would that be possible (I hope it is)

Do you mean an editor that runs within the game or an editing tool to use during development? (Maybe it doesn’t matter which you mean - both are possible in Unity.)