Accelerometer
Accelerometer
how would i access the accelerometer in the phone (the sensor that tells you pitch and roll)
Sometimes, the elegant implementation is just a function. Not a method. Not a class. Not a framework. Just a function.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Accelerometer
It's exposed as a [wiki]Joystick[/wiki] with 3 axes.
Re: Accelerometer
thanks, worked perfectly :>slime wrote:It's exposed as a [wiki]Joystick[/wiki] with 3 axes.
Sometimes, the elegant implementation is just a function. Not a method. Not a class. Not a framework. Just a function.
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Accelerometer
Actually pitch roll are angles... if you want the gyroscope then I'm afraid you wont be able to use it
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Who is online
Users browsing this forum: No registered users and 1 guest