I dont know how to move a entity only(without controlling)in the scene
Should I create a thread to process this movement?
e.g.I want to a robot form Vector3(0,0,0) to Vector(100,0,100),how to program this movement?

Code: Select all
mDirection = mDestination - robot.getPosition();Code: Select all
mDirection.normalise();Code: Select all
bool frameStarted(const FrameEvent &evt)
{
robot->translate(mDirection * mWalkSpeed * evt.timeSinceLastFrame);
...
}