Monday, 19 August 2013

SFML Side Collisions

SFML Side Collisions

I have been playing around with gravity stuff in SFML and I am beginning
to implement collisions to stop upward movement. However I need to be able
to see what side of an object I am hitting so that I can know if it just
restricts left or right movement, upward movement, or downward movement. I
would imagine that there is already a class in SFML that allows you to do
that, but it's not in the SFML 2.1 resource tutorials. Thanks!

No comments:

Post a Comment