We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The problem is with:
gravity: function(value) { if (value !== undefined) { this._world.SetGravity(new b2Vec2(value.x, value.y)); } var v = this._world.GetGravity(); return {x: v.x, y: v.y}; },
I had to change
this._world.SetGravity(new b2Vec2(0, value));
to
this._world.SetGravity(new b2Vec2(value.x, value.y));
It asks for {x,y} but if you send in {x: 0, y: 20} for example, it thinks y is now an object until the above fix is applied.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The problem is with:
I had to change
to
It asks for {x,y} but if you send in {x: 0, y: 20} for example, it thinks y is now an object until the above fix is applied.
The text was updated successfully, but these errors were encountered: