flat assembler
Message board for the users of flat assembler.

Index > Heap > For the mathematically inclined

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak
Ugh... I can't believe it took me this long to finally understand this... Embarassed

The only way to rotate on the local axis is to keep track of what they are on the global axis (inevitably resulting in storing 3 3d vectors [9 numbers total])... This is actually intuitive, but i guess it would just make too much sense. Or, i'm just that bad at visualizing things (even when i got a 3d library to mess with Embarassed). It could be possible to convert that back to 1 vector in relationship to the world, however that would probably take more speed and (maybe) memory... (Actually, you could get away with keeping track of only 2, because one of the axis will be a cross product between the other 2.)

Anyway, i finally got what i needed (I vaguely understand it, but i'm having trouble visualizing the routine because of being kind of weak in trig, but i do get all the sines, cosines, and generally what's going on). Thank you all for your help.

(BTW, for those of you skittish of the LookAt function, it's very easily replaced).
Post 26 Apr 2010, 15:15
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.