Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 10-15-2010, 09:03 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Location: Cluj-Napoca, Romania
Posts: 15
Vladutzz is on a distinguished road
Send a message via Yahoo to Vladutzz
Default Using Accelerometer with Box2D

It would of interest for me (and for sure many others as well) a sample of how to use the accelerometer with Box2D.

What i mean is having a physics world (b2World with gravity, collisions, forces, etc) and on accelerometer update, applying linear/angular impulse, torque/ restitution on coliding objects and so on.
I know its not verry easy and i know it's doable, but i appear to be stuck after i take the values from the accelerometer and have to apply linear impulses on b2bodies. What approach should be used?

Thanks in advance,
Vlad.
Vladutzz is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 445
17 members and 428 guests
cgokey, dcool, Dj_kades, Droverson, iAppDeveloper, ipodphone, karatebasker, laureix68, LunarMoon, PapaSmurf, patapple, Paul Slocum, peterwilli, pipposanta, QuantumDoja, SLIC, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:06 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0