[r90] code error in physics behavior js file

Bugs will be moved here once resolved.

Post » Thu May 17, 2012 7:18 pm

Function InitVelocityConstraints, in the realtime.js file in the physics behavior, line 9242, has a faulty variable decleration. This error causes the game to crash when running in preview mode and as a html. Happens probably on all kind of exports as well.

The faulty decleration looks like this:
var K = new b2Mat22();

and should look like this:
var K = new Box2D.Common.Math.b2Mat22();

I tried with the new line and it does not crash the game when running in preview mode or as a html file.
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Mon May 21, 2012 2:28 pm

Ah, thanks for the find. Looks like a bug inherited from the Box2D library we use. Fixed for next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest