Using the physics engine, I have a sprite that is rectangular.
I want the sprite to be pinned in it's center so it does not fall with gravity, or move from that position, but also allow it to rotate along the center.
So that if a ball hits it it will rotate properly.
How can I go about doing this properly?
Develop games in your browser. Powerful, performant & highly capable.