[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
39
S
14
G
9
Posts: 151
Reputation: 8,652

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
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests