Box2D Forums

It is currently Fri May 24, 2013 2:46 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Sep 01, 2011 3:04 pm 
Offline

Joined: Wed Apr 09, 2008 6:10 pm
Posts: 11
Location: Ohio
You are probably already putting them in since this awesome feature rolled out practically yesterday, but the friction/gear/mouse/pulley/rope/wheel joints don't seem to define a 'Dump()' function, which silently omits the joint from the log file and leaves an empty { } pair to signify where they would've gone. (It might be useful to put an assert into b2Joint::dump(), or perhaps just have it insert a code comment into the log, just until they get done.)

It kind of caught me off guard until I looked into the source. Those particular joints I imagine would be troublesome to generate, especially the gear joint since it depends on joint creation order, yikes. Was just trying out the dump() function out of curiousity so it's not the end of the world, it's pretty neat how it works!


Top
 Profile  
 
PostPosted: Fri Sep 02, 2011 1:03 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
I'm guessing he is just doing the most commonly used joints first.

Yes, the gear joint is a tricky one. I came across that when I implemented an importer/exporter recently. I needed to do them in a second pass once all the other joint types had been given an id to work with. Since Erin is adding to the library itself he will be able to access things a little easier, but it would very handy to have a b2Joint* GetJoint1() and GetJoint2() in the gear joint so that a b2GearJointDef can be fully reproduced using the normal API.

More to the point though, it seems like Diablo's minions may have a little more free time lately... but I'm probably just reading too much into that 8-)


Top
 Profile  
 
PostPosted: Fri Sep 02, 2011 10:33 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
Yeah, I will get the other joints done soon. Also, I plan to implement all those APIs to make things like JSON serialization easier.


Top
 Profile  
 
PostPosted: Sat Sep 17, 2011 11:28 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
Thank you!!
I updated my JSON loader for v2.2.0 to support chain shapes and can confirm that all necessary world state can now be obtained from the standard API.


Top
 Profile  
 
PostPosted: Sat Sep 17, 2011 12:32 pm 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
Cool. 2.2.1 should go out soon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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