Box2D Forums

It is currently Thu May 23, 2013 4:16 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Mar 12, 2012 11:42 am 
Offline

Joined: Mon Mar 12, 2012 11:30 am
Posts: 2
I recently started working with fizzy and jbox2d and I'm trying to set things up so I can start working on my game.
Sadly, I can't get the physics library to work properly. This is what happens when I let a rotated rectangle/box fall onto another rectangle ground box:
http://youtu.be/Gcrq7Jom3ho

When I try the same thing but with a circle, it works better, but it doesn't lay on top of the block but inside it..:
http://youtu.be/g0RGVd4KNR0

I really hope someone can help me with this, because it's getting really frustrating :(


Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 12:02 pm 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
First thing you should do in a situation like this is use Box2D's debug draw to check that you are drawing things in the right place. It's pretty strange that the box doesn't rotate at all... are you getting the current angle from Box2D to draw with?


Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 1:26 pm 
Offline

Joined: Mon Mar 12, 2012 11:30 am
Posts: 2
irresistible force wrote:
First thing you should do in a situation like this is use Box2D's debug draw to check that you are drawing things in the right place. It's pretty strange that the box doesn't rotate at all... are you getting the current angle from Box2D to draw with?

I don't think I'm able to use debugdraw with fizzy? Is there a way to use it anyways?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


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