I am new with Phaser and now I trying to develop simple game, but in my game I need to rotate an uquilateral triangle around its geometrycal center, so the center of rotation not located in 0.5width/0.5height point (now rotate() function rotate sprite around it's center, am i right?). And, by setting pivot or anchor, i can change center of rotation, but sprite changing its position too and collisions start to occur not at the visual boundaries of the sprite (I use p2 physics and making json file with physics by PhysicsEditor, if it means something).
I made dirty hack for now - by changing the sprite so that the center of the triangle was in the middle of sprite, but it is horrible and temporary solution, of course.
Is there any clean solution for this problem? I think it must be something obvious, but can't figure it out for the second day.