Google

The difference between "mDirection" and "transVector"

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.

Moderators: OGRE Team, Moderators

The difference between "mDirection" and "transVector"

Postby qingshenwangzi » Thu Jul 29, 2010 2:47 pm

Excuse me.Can any friend tells me the difference between "mDirection" and "transVector" ?
If the "mMove" has the same value, sentence"mDirection.x = -mMove;" and sentence "transVector.x -= mMove;" have the same effert.So what on earth is the difference between them?
Thank you so much.
qingshenwangzi
Familiar face
 
Posts: 25
Joined: Fri Jul 23, 2010 8:48 am

Re: The difference between "mDirection" and "transVector"

Postby jacmoe » Sat Jul 31, 2010 12:01 am

Could you tell me where 'mDirection' and 'transVector' is? :)
Just looking at the names, I'd guess that 'mDirection' is a pointer to a Quaternion and 'transVector' is a displacement vector of type Vector3.
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC8, VC9, VC10 and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17885
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Re: The difference between "mDirection" and "transVector"

Postby qingshenwangzi » Mon Aug 02, 2010 2:12 pm

Thank you. Maybe you are right.
I come across this problem when I tried to analyse the Basic tutorial 5, I compared the sentence"mDirection.x = -mMove;" inside with the Basic tutorial 4's sentence "transVector.x -= mMove;" . :?
qingshenwangzi
Familiar face
 
Posts: 25
Joined: Fri Jul 23, 2010 8:48 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests