Physics.P2.Body#rotation

rotation : number

The angle of the Body in radians.
If you wish to work in degrees instead of radians use the Body.angle property instead. Working in radians is faster as it doesn't have to convert values. The angle of this Body in radians.

Source code: physics/p2/Body.js (Line 1822)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.