1. Anders Ruud
  2. love
  3. Issues

Issues

Issue #52 resolved

No getter function wrapper for Bodies' "allow sleeping"

Anonymous created an issue

Getter getAllowSleeping() = bool isn't implemented, but setAllowSleeping(bool) is. Considering this a bug due to inconsistency-- no other property is write-only.

Comments (3)

  1. Anonymous

    I actually thought that might have been the case, so I looked it up on the manual before posting. It is implemented [at least] in current Box2D version 2.1.0, as bool Body::IsSleepingAllowed() const;

  2. Anonymous

    My mistake. It was indeed a recently added function. The flag solution will have to do until the 2.1.x update comes through.

  3. Log in to comment