How do I get the point coords of a rotated SFML shaperect?

Posted by user15498 on Game Development See other posts from Game Development or by user15498
Published on 2012-04-25T23:48:06Z Indexed on 2013/11/10 22:26 UTC
Read the original article Hit count: 254

Filed under:
|

I am trying to get collisions of bullets working, and am using SFML. I am using code to get the position of the points of the rectangle for collisions, however I think there's a way to do this without having to get points but by simply getting the points from SFML, since the shape is a rectangle and the points are stored in that way. Is there a way to do that? Through a combination of getPoint() and getGlobalBounds() maybe?

While on this topic, is it better to use shapeRects or sprites? I used to only use sprites, however with the addition of textures and more low level stuff I think it would be best to switch to using rectangles and setting their size.

© Game Development or respective owner

Related posts about c++

Related posts about sfml