Trouble adding vector3df

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
communism
Posts: 8
Joined: Tue Mar 13, 2012 1:59 pm

Trouble adding vector3df

Post by communism »

I ran into a problem while I was trying to add vector3df variables.

A snippet of code;

Code: Select all

 
//IAnimatedMeshSceneNode node
vector3df position = node->getAbsolutePosition;
//I want to add to the variable position...
//Is there any way to add and subtract from each one of the three
//numbers in the vector3df?
 
zprg
Competition winner
Posts: 30
Joined: Tue Jul 31, 2012 12:29 pm
Location: Germany

Re: Trouble adding vector3df

Post by zprg »

maybe it should be look this way please try:

Code: Select all

core::vector3df position = node->getAbsolutePosition();
and yes you can add or substruct for example:

Code: Select all

position.X=position.X+7;
position.Y--;
 
Post Reply