Closed GoogleCodeExporter closed 8 years ago
http://www.iforce2d.net/b2djson
Original comment by iforc...@gmail.com
on 29 Jun 2011 at 8:21
[deleted comment]
It looks like irresistible force is already hosting this contribution, which is
probably for the best so he can keep it up to date.
Original comment by erinca...@gmail.com
on 22 Aug 2011 at 10:48
Sure!
Just one point I would like bump again though, is the need for a few extra
Getxxx() functions in order to get all the info needed for a complete snapshot
of a b2World. Although these are pretty trivial to implement it would be
convenient if they were part of the official library, since this will come up
again in future for anyone who wants to implement this kind of exporter. It
would be great if we could just say "get Box2D v2.x.x and add these files",
instead of the current situation where I feel compelled to host a download of
the whole Box2D source with the changes made, so people can jump into it easier.
It's mainly joints that needed a little extra. Basically anything which is in a
joint def needs to be accessible from the joint instance after it has been
created. fwiw here's what I needed to add this time, there may be more
appropriate ways...:
b2World
bool GetWarmStarting()
bool GetContinuousPhysics()
bool GetSubStepping()
bool GetAllowSleep()
b2WheelJoint
b2Vec2 GetLocalAxisA()
b2RevoluteJoint
float32 GetMaxMotorTorque()
b2GearJoint
b2Joint* GetJoint1()
b2Joint* GetJoint2()
//After r186 the gear joint no longer holds references to the
//original joints it parents - I needed to keep these references.
//For now, b2dJson is not supporting gear joints.
//To implement an exporter fully, references to the two controlled
//joints will need to be available to recreate the joint def.
b2PrismaticJoint
float32 GetMaxMotorForce()
b2Vec2 GetLocalAxisA()
float32 GetReferenceAngle()
b2WeldJoint
float32 GetReferenceAngle()
Original comment by iforc...@gmail.com
on 23 Aug 2011 at 10:24
Original comment by erinca...@gmail.com
on 25 Aug 2011 at 7:25
This issue was closed by revision r217.
Original comment by erinca...@gmail.com
on 4 Sep 2011 at 9:48
Completed: At revision: 217
Original comment by erinca...@gmail.com
on 4 Sep 2011 at 9:48
Original issue reported on code.google.com by
erinca...@gmail.com
on 8 Jun 2011 at 11:17