v3.12
Use these links in your projects to always get the latest version of p5play:
https://p5play.org/v3/planck.min.js
https://p5play.org/v3/p5play.js
3.12.5
The dimensions of a sprite that's created from a group with defined dimensions can now be overridden in the sprite's constructor, as users would expect.
let g = new Group();
g.d = 20;
// inherits diameter of 20
new g.Sprite(60, 60);
// overrides with diameter of 40
new g.Sprite(10, 10, 40);
3.12.4
planck.js bug 263 was fixed, p5play now uses v1 beta16
3.12.3
Workaround fix for an error found in v1 beta15 of planck. piqnt/planck.js#263
3.12.0
The offsetA
and offsetB
properties of DistanceJoint
and HingeJoint
were not properly implemented. @ Raj noticed that changing the offsets would change the positions of the attached sprites, which is not desirable! Also, sprite rotation is now accounted for when drawing joints with offset attachment points. I had previously announced that joints were finalized but the problem was that I tested joints with sprites that were too small for me to see the problems with changing the joint's offsets. Now they are good!
Added mouse.visible
, a boolean property for easily hiding the mouse, and mouse.cursor
which can be used to change the mouse's style. Will make a documentation page demoing this.
kb
letter key properties are now available in upper case, in addition to lower case. When using functions like kb.pressing()
the key name can be case insensitive, but special keys now uses camelCase
property names instead of PascalCase
.