To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > General Help > Math and Physics

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-16-2009, 04:16 PM   #1
Ralgoth
newb of many sorts
 
Ralgoth's Avatar
 
Join Date: Apr 2002
Posts: 444
resolved [RESOLVED] 3d rotation, calculating orientation

This is kind of complicated, so I'll explain with a visual scenario...

Say that there's a ping-pong ball with a needle sticking out of the top of it.

If you were to rotate the ping pong ball 90 degrees along the X or Z axis, then the needle would be horizontal (or parallel to the plane).

Here's where my brain starts to hurt...

If you rotate all three axises at the same time, how then would you calculate when the needle become horizontal, or passes into the southern hemisphere of the pingopong ball?
__________________
Search first, asked questions later.
Ralgoth is offline   Reply With Quote
Old 09-17-2009, 09:30 AM   #2
Ralgoth
newb of many sorts
 
Ralgoth's Avatar
 
Join Date: Apr 2002
Posts: 444
Okay, I got it figured out.

What I should have mentioned before is that the rotations were calculated from papervision's Matrix3D class.

After a good night's sleep, I realized that all I needed to do was roll the ping-pong ball back to a rotationZ of 0, then I can look that the rotationX to determine which hemisphere the needle is in.

Thanks to anyone who racked their brains over this
__________________
Search first, asked questions later.
Ralgoth is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > General Help > Math and Physics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT -4. The time now is 08:26 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.