Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

no instance of constructor matches the argument list

$
0
0
Here is the constructor
Bullet(sf::Vector2f& startPos, float angle, float speed, float lifeTime, std::string fileName, b2World& world)



And my argument list
//How each variable is defined
sf::Sprite sprite; // returns a const Vector2f &
float desired Angle = ...;
b2World* world = ...;



Bullet* newBullet = new Bullet(sprite.getPosition(), desiredAngle, 3.0f, 1.0f, "bullet.png", world); 



I dont understand how this is wrong. I do have an inkling it might have to do with the b2World* world, however.

Viewing all articles
Browse latest Browse all 51036

Trending Articles