Skip to content

Add ability to disable auto sleeping for a rigid body #342

@upisfree

Description

@upisfree

Sometimes, I need to disable auto sleeping for a particular body. Now I have a wrapper with the param isSleepingEnabled and in my update() method, each frame I call body.wakeUp(). I don't know how constant wakeUp() affects performance. Maybe it would be cleaner to add something like body.disableSleeping() for that kind of cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions