Hi everyone, I have a problem.
I'm trying to navigate an AnimatedMeshSceneNode through some predefined waypoints. It goes through some, then gets stuck at one. I checked through debugging, and
Code: Select all
adana=agent_node->getPosition();
// ...some operations on adana...
agent_node->setPosition((core::vector3df)adana);
agent_node->updateAbsolutePosition();
adana=agent_node->getPosition();
I check the value of adana at each time, but here's the problem. When I setPosition the node, I check it to make sure it is different from the previous position through VS's debug. But the node's position doesn't change, and during the beginning of the next step, when I get the value of the position, it's still the same value with the previous step, even though I had seen with my own eyes that it had changed. What might be the cause of this?