1
Graphics / Re: My collision detection stopped working after using polymorphism
« on: May 30, 2017, 03:45:28 am »
So I noticed something really weird. Passed sprites object has both width and height of 0.
so for example when I call my collision function and cout: mleczny->sprite.getGlobalbounds.height;
it will display zero, but for "this" pointer it gives correct parameters.
I think that passing object of my class somehow that object starts reffering to empty sprite ?
so for example when I call my collision function and cout: mleczny->sprite.getGlobalbounds.height;
it will display zero, but for "this" pointer it gives correct parameters.
I think that passing object of my class somehow that object starts reffering to empty sprite ?