Physics.Arcade.Body#rotation

rotation : number

The Body's rotation in degrees, as calculated by its angularVelocity and angularAcceleration. Please understand that the collision Body
itself never rotates, it is always axis-aligned. However these values are passed up to the parent Sprite and updates its rotation.

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

Please login to continue.