I have an issue in the movement on the classy clash part, hte instructor use this code to stop the camera at the (0.0, 0.0) position of the map
if (Vector2Length(direction) != 0.0)
{
// set mapPos = mapPos - direction
mapPos = Vector2Subtract(mapPos, Vector2Normalize(direction));
}
but when I try this code in my project the camera stills move in that direction
How could I fix this?