Get Z vector of rotation matrix?

Posts: 281
Joined: 2009.04
Post: #16
Hmmm. Yes. But the ship doesn't jitter. It doesn't go the way I want it to. I thought that my demo (as complex as it seems) is quite simple, and the 'sluggish' ship movement helps me visualise which way the ship is turning.

Quote:I'd pull out the relevant code into an as-small-as-possible test app
Well, I might, but once I have a world set up (so we know where we are going), and all of the quaternion functions transferred, it almost is my game now!

I tried to make it as simple as a demo as possible but maybe it's too complex.
Near the end of the video I pick a white planet and try to head towards this planet, but the ship 'orbits' it in a strange way. This was the part that I was trying to explain, and the main problem. I'm not really good at imagining what is happening mathematically, or I would just say 'Oh, the ship is fixed local x and y but z global rotations'. Sorry if it seems confusing. Smile

~ Bring a Pen ~
Quote this message in a reply
Posts: 869
Joined: 2003.01
Post: #17
You're probably applying the rotation in the wrong way (wrong coordinate system, wrong concatenation order of matrices, or the like). I strongly recommend moving away from HPB and using vector based rotation, too.
Quote this message in a reply
Posts: 281
Joined: 2009.04
Post: #18
DoG Wrote:HPB and using vector based rotation, too.

Two questions:

1. What's HPB?
2. What's vector based rotation?

Do you mean using axis-angle rotations?

P.S. Your SpaceProto game is stunning, surely you have implemented a similar feature?

~ Bring a Pen ~
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Strange problem while using 4x4 Rotation Matrix Man With No Name 6 6,418 Mar 11, 2008 08:00 AM
Last Post: Man With No Name
  Rotation along directional vector evenmybird 3 4,220 Aug 25, 2006 10:01 PM
Last Post: Hasty
  Using a matrix to generate a new vector position imikedaman 6 7,325 Jul 16, 2006 01:17 PM
Last Post: imikedaman
  Simple 2D Matrix Rotation isn't working Joseph Duchesne 2 4,194 Jun 19, 2005 08:41 AM
Last Post: Joseph Duchesne