Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 297723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:39:57+00:00 2026-05-12T06:39:57+00:00

I wonder if it is possible, as the Wiimote has 3 accelerometers, to convert

  • 0

I wonder if it is possible, as the Wiimote has 3 accelerometers, to convert the accelerometers readings to a 3D vector.

I know the trick to extract pitch/roll, but it only uses the X and Z accelerometers, and has the gimbal lock problem.

What I would like is a full 3D vector, that can be converted to a quaternion rotation representation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:39:57+00:00Added an answer on May 12, 2026 at 6:39 am

    Thinking about it further, the accelerometers values are the components of the vector I was looking for… You only have to express the shortest arc between a reference vector and this vector as a quaternion.

    For example, if accel is a (normalized) vector containing the accelerometer values:

    reference = Vector3(0, 0, 1)
    axis = crossp(accel, reference)
    angle = acos(dotp(accel, reference))
    q = Quaternion::from_xyzr(axis, angle)
    rotation_matrix = q.matrix()
    

    I chose {0, 0, 1} as the reference vector, because it is the values of the accelerometers at “rest position” (Wiimote on a table, pointing towards you).

    This gives the same kind of movements the X/Z accelerometers pitch/roll conversion does, but without gimbal lock at vertical positions.

    The only problem is you don’t get information about rotations made on the earth gravity axis… I guess this is what the MotionPlus is made for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know it may pointless questions but I just wonder it is possible to
I wonder if it's possible to create an extension method which has functionality &
I wonder is it possible to only display for example the 10 latest comments
I have an APK for test and I wonder if is possible to know
I wonder is it possible to get cookies under another domain rather than my
I wonder if it is possible to show OSM ( Open Street Maps )
I wonder if it's possible to assign a default value for web service request
I wonder if it's possible to pivot a table in one pass in Apache
I wonder if it's possible to add an Event Listener to a MovieClip that
I wonder if it is possible to use FK's in Mysql (InnoDB) for inverse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.