Search found 16 matches

by dmagunov
Sun Jan 11, 2015 1:38 am
Forum: R.U.B.E discussion
Topic: List of loaders for RUBE scenes
Replies: 37
Views: 436549

Re: List of loaders for RUBE scenes

Wow, you are really cranking out the code! It looks like gravity scale is not being implemented in any of the loaders you have - in the 'joint types' example the 'B' body in the top right should have gravity scale of zero, so that it settles in a position above the ground. You can check the expecte...
by dmagunov
Fri Jan 09, 2015 8:15 pm
Forum: R.U.B.E discussion
Topic: List of loaders for RUBE scenes
Replies: 37
Views: 436549

Re: List of loaders for RUBE scenes

Hello guys!

The last javascript port of box2d - box2d-html5 for RUBE testbed is here: Demo | Article | Source code
by dmagunov
Fri Dec 26, 2014 10:33 pm
Forum: Bug reports
Topic: ASSERT in b2PolygonShape::Set / vertices order
Replies: 6
Views: 35482

Re: ASSERT in b2PolygonShape::Set / vertices order

Hello,

Maybe this helps You:

Comment following C++ code in the file Box2D/Collision/Shapes/b2PolygonShape.cpp

if (b2DistanceSquared(v, ps[j]) < 0.5f * b2_linearSlop)
{
unique = false;
break;
}
by dmagunov
Fri Dec 26, 2014 10:26 pm
Forum: R.U.B.E discussion
Topic: List of loaders for RUBE scenes
Replies: 37
Views: 436549

Re: List of loaders for RUBE scenes

Nice work! I recall from my time using it that Emscripten was not that easy to work with :) By the way, it's a bit hard to tell from your pages which demos are using Emscripten, but it's always the ones called 'box2djs' right? There are so many similar names for js ports of Box2D that I feel someth...
by dmagunov
Thu Dec 25, 2014 5:47 pm
Forum: R.U.B.E discussion
Topic: List of loaders for RUBE scenes
Replies: 37
Views: 436549

Re: List of loaders for RUBE scenes

Hello guys,

Here my version of RUBE testbed for emscripten box2djs: Demo | Article | Source code
by dmagunov
Wed Nov 26, 2014 10:20 pm
Forum: R.U.B.E discussion
Topic: List of loaders for RUBE scenes
Replies: 37
Views: 436549

Re: List of loaders for RUBE scenes

Please, check my implementation of jsbox2d loader for RUBE scene: Source code: https://github.com/dmagunov/Argadnet/tree/master/rube_testbed/jsbox2d Demo: http://argadnet.com/demo/rube_testbed/jsbox2d/index.html Blog post about it: http://argadnet.com/jsbox2d-port-of-box2d-to-javascript-in-action_5/
by dmagunov
Fri Nov 07, 2014 2:52 pm
Forum: Bug reports
Topic: Error while scale y -1 in joints local axis direction
Replies: 4
Views: 28112

Error while scale y -1 in joints local axis direction

I found an error in scale script. When translate prismatic joints it incorrect translate local axis direction. There are also incorrect translation of referenceAngle in weld joint.
by dmagunov
Thu Nov 06, 2014 11:38 pm
Forum: R.U.B.E discussion
Topic: Bodies position in JSON file
Replies: 10
Views: 39980

Re: Bodies position in JSON file

I found an error in scale script. When translate prismatic joints it incorrect translate local axis direction.
by dmagunov
Thu Nov 06, 2014 10:45 pm
Forum: R.U.B.E discussion
Topic: Bodies position in JSON file
Replies: 10
Views: 39980

Re: Bodies position in JSON file

fyi the script function scale() was added in v1.6 which lets you flip a scene vertically, and it takes care of all joint anchors, joint limits, image positions and image angles. You can see a video explanation here, from about 9:28 https://www.youtube.com/watch?v=NHbGtHtccx4 I should have posted a ...