Automatically wake up rigid bodies if user changes the transform.

This commit is contained in:
enn0x 2011-08-24 15:58:07 +00:00
parent 53425a0262
commit 84187f6e6d

View File

@ -236,6 +236,11 @@ transform_changed() {
shape->set_local_scale(scale);
}
}
// Activate the body if it has been sleeping
if (!_rigid->isActive()) {
_rigid->activate(true);
}
}
}