UnitVector is an array (std::vector) of sf::Vector2f's. UnitVector[0] is an sf::Vector2f.
sf::Vectors represent the mathematical vector, and not a dynamic array.
UniVector[0] is one sf::Vector, and doesn't have a function like push_back.
I believe you want
UnitVector.push_back(sf::Vector2f(10, 10));
Last edited on