I solved the problem by deleting the contents of player.body.shapes and adding a new shape using setShape.
Example:
player.body.shapes = []
player.body.addShape(new me.Rect(0, 0, 16, 16))
Hello!
I need to change/adjust the collision rectangle when the entity crouches.
I guess that I need to use addShape and setShape but I do not understand how to do it. Can anybody help me with an example or snippet?
Thanks!