| bio | website | |
|---|---|---|
| location | Melbourne, Australia | |
| age | ||
| visits | member for | 7 months |
| seen | May 4 at 14:09 | |
| stats | profile views | 2 |
|
Dec 21 |
awarded | Critic |
|
Oct 23 |
comment |
Arbitrary Rotation about a Sphere Precisely what I want to achieve. I just couldn't think of the correct way to get a position out of the orientation quaternion. Using what you have provided, I can write the Move() procedure, but to get the normalized axis (i.e. my position), would I just take (sin(qx),sin(qy),sin(qw)) * r? |
|
Oct 23 |
awarded | Scholar |
|
Oct 23 |
accepted | Arbitrary Rotation about a Sphere |
|
Oct 23 |
awarded | Supporter |
|
Oct 17 |
comment |
Arbitrary Rotation about a Sphere To answer your second question, I haven't exactly decided yet, but for the purposes of this question lets say no. |
|
Oct 17 |
comment |
Arbitrary Rotation about a Sphere Maybe a better example of what I'm going for: Player at (1,1,1) holding left would rotate around the sphere, passing through (~1.2,0,~-1.2), then (-1,-1,-1), then (~-1.2,0,~1.2) and back to (1,1,1). |
|
Oct 17 |
comment |
Arbitrary Rotation about a Sphere Perhaps it was poorly worded. The player should not leave the surface of the sphere, and should not be aware of the cardinal axis. So when you move "up", you move along the surface of the sphere in a upwards direction relative to the orientation of the player. e.g. If you are at (r,0,0) and press up, you will go towards the z+ pole, but if you keep going you should wrap around and keep going. |
|
Oct 17 |
awarded | Student |
|
Oct 17 |
asked | Arbitrary Rotation about a Sphere |