heading property

double get heading

Get the player's current heading.

Implementation

double get heading => _heading;
set heading (double value)

Set the player's heading.

Implementation

set heading(final double value) {
  _heading = value % 360;
  game.setListenerOrientation(value);
}