16
Graphics / Collision with FloatRect
« on: February 26, 2012, 02:30:35 pm »
I'm having difficulties with getting 2 FloatRects to react to each other.
Can someone write a simple sample showing how to to del with this? Having 2 FloatRects on the screen (displayed with RectangleShapes), one of them movable with WASD keys, the other stationary. The movable one needs to collide with the stationary one and not be able to move through it.
This would be very helpful so I can inspect how this is handled.
Thanks
Can someone write a simple sample showing how to to del with this? Having 2 FloatRects on the screen (displayed with RectangleShapes), one of them movable with WASD keys, the other stationary. The movable one needs to collide with the stationary one and not be able to move through it.
This would be very helpful so I can inspect how this is handled.
Thanks