Vector3df A is at (0,0,0)
Vector3df B is at (100,0,100)
There is a hill between the two.
I tried creating a flystraight animator but it goes through the hill. What I want to do is make it go over the hill and not through it.
Collision Detection and Triangle Selectors wont' fix it.
Also I tried doing this and making a followspline
Code: Select all
array<vector3df> points;
for(int x = eManager->selectedNode->getPosition().X; x <= newPos.X; x++)
{
for(int y = eManager->selectedNode->getPosition().Y; y <= newPos.Y; y++)
{
for(int z = eManager->selectedNode->getPosition().Z; z <= newPos.Z; z++)
{
points.push_back(vector3df(x,y,z));
}
}
}
Soo, any suggestions?