Vector2D mob::Seek(Vector2D target)
{
Vector2D Velo;
Vector2D Accn;
Velo = (target – m_pos).unitVector();///here is where its pointing
Accn = Velo-m_Velo;
return Accn;
}
Error 2 error C2146: syntax error : missing ‘)’ before identifier
‘–’ l:\bmb\bot.cpp 316 bmb
getting an error for this any ideas?
You seem to have somehow gotten an en dash where your minus operator should be.