Box2D Forums

It is currently Fri May 24, 2013 1:18 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Feb 25, 2012 7:31 am 
Offline

Joined: Thu Apr 01, 2010 1:42 pm
Posts: 72
Hi everyone,

I'm currently trying to port a game I made in C++ to Android so I'm using jBox2D.
But I just discovered that some methodes and classes I used in my game are just not here…

Where is the FixtureDef class ? Maybe should I replace it by another but which will have the same behavior ?
Another thing, I was using PolygonShape::SetAsABox but it doesn't exist anymore in jBox2D.

Furthermore, I was using Body::isAwake now I should use Body.isSleeping instead ?

I'm pretty embarrassed because I was hoping to make it fast (and not actually spending time in redoing everything in my game) :(

Is there somebody who can help me ?

Thanks a lot !


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 10:32 am 
Offline

Joined: Mon Jun 08, 2009 12:21 pm
Posts: 353
All of those things exist in jbox2d, so I'm a little confused. Are you using the latest version?


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 10:48 am 
Offline

Joined: Thu Apr 01, 2010 1:42 pm
Posts: 72
Ah really ? Maybe I didn't downloaded the right file…
I'm going to try downloading it.

Edit : Okay… I'm sorry. I got the wrong file. It works now.

How can I call the b2_dynamicBody with jBox2D ?
Is it BodyType.Dynamic ?

Thanks !


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 2 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