Hello Evry1
I am trying to use this function go to for moving my agent to move from one point to another
actually i am trying to get coordinates from the mouse click so I want that when i click this button
a go to function will be called which will take my character to that specific coordinates
my formal way is this
Code:
void DemoApp::mouseClickEvent(int button, int action, float x, float y)
{
if(button == 1) //right mb
{
m_m1pressed = (action == 1);
}
else //left mb
{
m_m0pressed = (action == 1);
if(m_m0pressed)
{
float coords[3];
const char* nodeName = GameEngine::pickNodeWithIntersectionCoords(x,y, coords);
DemoApp::processDestination(nodeName, coords[0],coords[1],coords[2]);
}
}
// printf("Cordinate X = %d Coordinate Y = %d Coordinate Z %d = ",coords[0],coords[1],coords[2]);
}
**********************************************************************
void DemoApp::processDestination(const char* nodeName, float x, float y, float z)
{
GameEngine::Agent_goToPosition(m_characterID, x,y,z, 1.3f);
}
**********************************************************************
but i get this error
***************************************************
1> All outputs are up-to-date.
1>DemoApp.obj : error LNK2001: unresolved external symbol __imp__Agent_goToPosition
1>C:\Users\Imran\Documents\WorkspaceHorde3D\Tools\GameEngine\/bin/DemoAppd.exe : fatal error LNK1120: 1 unresolved externals
***************************************************
kindly help! i m new to game engines
Regards Imran Habib