mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
bodies can now be forbidden from sleeping
This commit is contained in:
@@ -269,7 +269,7 @@ namespace box2d
|
|||||||
|
|
||||||
void Body::setAllowSleeping(bool allow)
|
void Body::setAllowSleeping(bool allow)
|
||||||
{
|
{
|
||||||
body->AllowSleeping(true);
|
body->AllowSleeping(allow);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Body::putToSleep()
|
void Body::putToSleep()
|
||||||
|
|||||||
Reference in New Issue
Block a user