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.
communism
Posts: 8 Joined: Tue Mar 13, 2012 1:59 pm
Post
by communism » Fri Aug 10, 2012 7:08 pm
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
Post
by zprg » Fri Aug 10, 2012 7:12 pm
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--;