How do I get the coordinates of a rotated shape in SFML? [on hold]


bikefixxer
HOME ยป Game Development

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?

Related to : How do I get the coordinates of a rotated shape in SFML? [on hold]
How do I get the coordinates of a rotated shape in SFML? [on hold]
Game Development

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?
How do I get the point coords of a rotated SFML shaperect?
Game Development

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
SFML Shape::Line has 5 points
Game Development

I am trying to find the start and end points i defined when creating a line shape in SFML. but the shape that shape::line creates has 5 points. Isn't there any way to retrieve this? I am doing a line segment to line segment intersection in 2d, and for all my walls ETC i am using SFML's Shape::Line...


SFML shape.move doesnt change point positions
Game Development

Hello
I have a problem which consists of me trying to check for polygon collision, and I want to be able to move my polygons but the command polygon.Move(x,y); doesnt change the positions of the points (checked with std::cout << polygon.getPointPosition(0).x)
even though the polygon moves on the screen the physical positions of the points doesnt change, the .Move(x,y) function only seems to alter the view mode, is there some simple way to solve this?
thanks
Language is C++


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .