Box2D Forums

It is currently Wed May 22, 2013 2:48 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Cant find createShape()
PostPosted: Thu Nov 03, 2011 9:39 am 
Offline

Joined: Wed Nov 02, 2011 5:55 am
Posts: 6
hi!,

I'm new and got a small problem.. Atfter the tut: http://www.4feets.com/2009/03/2d-physic ... ing-box2d/
is the line 41: groundBody.createShape(groundShapeDef); but there isnt createShape() and I cant find a another methode on
at the javadoc.

my code:
http://pastebin.com/VFf8hhar


Top
 Profile  
 
PostPosted: Thu Nov 03, 2011 1:20 pm 
Offline

Joined: Wed Nov 02, 2011 5:55 am
Posts: 6
Ah it says: groundShapeDef = new PolygonDef(); not groundShapeDef = new PolygonShape();
but neither that I find.

Realy hard for a beginner. :/


Top
 Profile  
 
PostPosted: Thu Nov 03, 2011 1:27 pm 
Offline

Joined: Tue Jun 28, 2011 6:56 am
Posts: 20
take a look at the examples, you can find them browsing the SVN repository


Top
 Profile  
 
PostPosted: Thu Nov 03, 2011 4:43 pm 
Offline

Joined: Wed Nov 02, 2011 5:55 am
Posts: 6
ahh, http://code.google.com/p/jbox2d/source/ ... bed/tests/
find :> thank you!


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

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