Monday, November 15, 2010

Ugh. Crap.

It's come to my attention that, in order to do my collision detection, I will need to write a method for calculating the inverse of a given matrix. The reason for this is that I need to acquire the transformation matrices for the two objects being tested by starting the transforms at each object in question and then work backwards until reaching a common parent object (or the root object of the tree). Then one will need to be inverted and multiplied against the other. The resulting matrix will be the final transformation matrix used to express the coordinates of one object in the other's frame of reference.

Now, I haven't done any linear algebra since my undergraduate general relativity course so it suffices to say that I'm more than a little... rusty (see what I did there?). Fortunately for me, however, the internet is crammed chock full with useful information.

It's just that the process of actually writing the code is time-consuming, boring and, therefore, annoying. Oh well. It's a small price to pay for some excellent functionality.

Luckily for me, my evening (after leaving work) is free of obligation (save for an hour to watch last night's The Walking Dead) so I can tackle this with gusto.

I suppose I should cook dinner too...

No comments:

Post a Comment