Box2D Forums

It is currently Thu May 23, 2013 12:58 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Sun Mar 16, 2008 7:01 am 
Offline

Joined: Tue Nov 06, 2007 1:38 pm
Posts: 55
It would be nice to have a testbed project that one for all could nail how to use meters as units instead of pixels. It seems those of us who does not have a strong physics background (read: me) have problems to do so. :lol:


Top
 Profile  
 
PostPosted: Sun Mar 16, 2008 9:13 am 
Offline

Joined: Tue Feb 12, 2008 4:54 pm
Posts: 130
MadsGustaf wrote:
It would be nice to have a testbed project that one for all could nail how to use meters as units instead of pixels. It seems those of us who does not have a strong physics background (read: me) have problems to do so. :lol:


It's not a physics problem, though :) It's fairly "render specific". Here's a potential example: My view of the game is 16m x 12m with a box 2m square inside. My screen resolution is 800 x 600. My scaling factor is thus 50. So, to render the box? Scale its position by 50, and the length of its sides by 50. The physics play out in their safe units, you scale to your desired pixel view.

That's really all it is :)

Bill


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group