1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

sleeping property now should work properly, fixes #1892

This commit is contained in:
Juan Linietsky
2015-05-16 17:54:36 -03:00
parent 8482611f81
commit bbe9a37f1d
4 changed files with 6 additions and 2 deletions

View File

@@ -257,6 +257,8 @@ void BodySW::set_state(PhysicsServer::BodyState p_state, const Variant& p_varian
Transform t = p_variant;
t.orthonormalize();
new_transform=get_transform(); //used as old to compute motion
if (new_transform==t)
break;
_set_transform(t);
_set_inv_transform(get_transform().inverse());