Is there a way to set the pivot point of a Sprite?

I’d like to position and rotate by the horizontal center, vertical bottom position of a Sprite.

Rotate and Scale About a Point | Babylon.js Documentation (babylonjs.com)

It is not supported by the Sprite class. As @dalidaliW pointed out, you will have to do the calculation yourself.

4 Likes