zolver
16-12-2010 08:01:34
Hi, there...
I wanna give interaction with my NxOgre application from input keyboard, like NxOgre Tutorials - 111 - Dynamic CCD. I copy & paste this code to class of my application.
But, while I compiled I got this error
How I can fix it?
I wanna give interaction with my NxOgre application from input keyboard, like NxOgre Tutorials - 111 - Dynamic CCD. I copy & paste this code to class of my application.
bool keyPressed(const OIS::KeyEvent& evt)
{
if (evt.key == OIS::KC_SPACE)
{
Vec3 force(mCamera->getDirection());
force *= 50;
mBody->setGlobalPosition(Vec3(mCamera->getPosition()));
mBody->setLinearVelocity(force);
}But, while I compiled I got this error
1>c:\dev\projects\nxogre\rc1\rc1.cpp(147) : error C2059: syntax error : 'string'
1>c:\dev\projects\nxogre\rc1\rc1.cpp(147) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>c:\dev\projects\nxogre\rc1\rc1.cpp(176) : fatal error C1075: end of file found before the left brace '{' at 'c:\dev\projects\nxogre\rc1\rc1.cpp(29)' was matchedHow I can fix it?