Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - NBeeby

Pages: [1]
1
General / SFML and Box2D Issue
« on: December 31, 2017, 12:42:54 pm »
Hi, I'm creating an RPG in C++ with SFML which uses a view which is 800 x 600 and the rest of the window is several thousand pixels. I'm wanting to add basic collision detection and I was told to use Box2D.
My problem is, when implementing Box2D and trying to create a body, it'll only draw to the view, and as my player scrolls, the box wont go out of view. Is there any way to get a body to draw to the window and leave the view when out of view?


Pages: [1]