Search found 6 matches

by garfi43
Fri Feb 01, 2013 10:24 am
Forum: R.U.B.E discussion
Topic: Retrieving custom properties from objects
Replies: 1
Views: 6648

Retrieving custom properties from objects

Keys used to map custom properties are memory addresses of objects (b2Body,b2Fixture...etc). And Box2D uses his own allocation method to be efficient (reuse allocated memory). If the above is true, then what happens when an objectA (memory 0x01), which has a custom property, gets deleted and, object...
by garfi43
Fri Feb 01, 2013 12:45 am
Forum: R.U.B.E discussion
Topic: How to copy bodies from one json file to another file
Replies: 2
Views: 8950

Re: How to copy bodies from one json file to another file

Thank you Chris.
I have just realized that it can be easily done (my fault).

Also thanks for that PE to RUBE tip. I'm going to test it to see how it goes.
by garfi43
Thu Jan 31, 2013 7:56 am
Forum: R.U.B.E discussion
Topic: How to copy bodies from one json file to another file
Replies: 2
Views: 8950

How to copy bodies from one json file to another file

Hello,

I wanted to know how to copy body information from one json file to another file.
Can it be done inside RUBE? Or do you have to manually edit json files?
What would be the best approach?

Thanks.

(migrating from PhysicsEditor to RUBE. It is great.)
by garfi43
Tue Jan 22, 2013 2:38 am
Forum: Bug reports
Topic: Incorrect size of images displayed on editor
Replies: 2
Views: 10655

Incorrect size of images displayed on editor

When dragging and dropping two images (PNG) to the editor, the images are resized/scaled automatically to the same size or a scale completely different. (rube for Mac 10.7.5)
by garfi43
Tue Jan 22, 2013 2:15 am
Forum: R.U.B.E discussion
Topic: How can you copy joints?
Replies: 2
Views: 9584

Re: How can you copy joints?

Helpful suggestion Chris, it worked out. Thank you. on b2dJson.h //reading functions ... b2Joint* j2b2NewJoint(b2World* world, Json::Value jointValue, b2Body *bodyA, b2Body *bodyB); ... on b2dJson.cpp b2Joint* b2dJson::j2b2NewJoint(b2World* world, Json::Value jointValue, b2Body *bodyA, b2Body *bodyB...
by garfi43
Mon Jan 21, 2013 12:31 pm
Forum: R.U.B.E discussion
Topic: How can you copy joints?
Replies: 2
Views: 9584

How can you copy joints?

I am trying to copy a joint but there are some errors. Json::Value jointValue; b2Joint *tmpJoint; tmpJoint=json->getJointByName("jointName"); jointValue=json->b2j(tmpJoint); json->j2b2Joint(World,jointValue); But it is like the b2j function does not return anything, crushing the program at...