No getter function wrapper for Bodies' "allow sleeping"

Issue #52 resolved
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