Sign in to follow this  

Const Confused

Recommended Posts

Hi, I'm trying to write a game using OOBB code that a friend of mine wrote. He's now unavailable and I've run into an error in my code involving his class. OOBB.h
void Set(Vector& newCenter, const double w, const double h, double angle);

OBB2D Current;
Current.Set(Pos, (double)pCharacters[CharsOnScreen[i]]->GetW(), (double)pCharacters[CharsOnScreen[i]]->GetH(), (double)pCharacters[CharsOnScreen[i]]->GetAngle());

The method definition is in OOBB.h and I'm trying to use it in MyClass.cpp. I'm getting an error saying "No matching function call OOBB::Set(SVec2&, double, double, double)" I think its because of the const in the method definition, but I dont know if that is it or how to fix it. Cheers

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this