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.


Messages - MuhammadYaseen

Pages: [1]
1
Graphics / Re: Align SFML object with Box2D objects
« on: February 01, 2014, 04:56:30 pm »
Thank you!

You might not believe, I have been trying to solve this issue since friday (Learned a few things this way, though).

I suspected it would be something trivial I am missing.

Renders perfectly now , thanks again.

2
Graphics / Align SFML object with Box2D objects
« on: February 01, 2014, 04:32:28 pm »
Greetings!

I have setup a basic project to get SFML and Box2D working together. I have got basic rendering to work and I am able to create bodies.

Problem however is that my SFML RectagleShape doesn't align properly with Box2d body.

In the attachement, pinkish rectangle is SFML's RectangleShape and Light green object is what I getting from Box2D debug draw. As you can see there is a problem.

Here is the code : https://gist.github.com/muhammadyaseen/8753692

I am aware of the MKS to Pixel conversion and that SFML's center by default is at (0,0).

I have (i believe) taken care of these things, but still experiencing this problem.

Any help is appreciated.

Pages: [1]
anything