quinton-ashley/p5play

Trying to set rotationLock causes a Type Error: Cannot set properties of undefined (setting 'mass')

davidbouchard opened this issue · 2 comments

As of today, all my sketches that dynamically link to p5play and planck.js started showing this error whenever I try to set rotationLock = true on a Sprite:

Uncaught TypeError: Cannot set properties of undefined (setting 'mass')

This affects the example page on the documentation as well:

https://p5play.org/learn/sprite.html?page=9

This affects other functions as well that try to set the Sprite's mass property, for example, making a Glue Joint. Perhaps this is related to changes introduced in 3.20.1

yes it was, should be fixed in v3.20.2 now. Thank you for reporting the errors!