diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-01-03 16:52:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-01-03 16:52:37 -0300 |
commit | fbdd925d9be1c4c96d05089d7d5a58cd938b002c (patch) | |
tree | 9f4eb2ae7c61450dffb4a86bb5e82cf66e23d496 /scene/3d/collision_object.cpp | |
parent | eb1f978b1c1693018e9a6d353ca914f8e6586b4e (diff) | |
download | redot-engine-fbdd925d9be1c4c96d05089d7d5a58cd938b002c.tar.gz |
-Work in progress visual shader editor *DOES NOT WORK YET*
Diffstat (limited to 'scene/3d/collision_object.cpp')
-rw-r--r-- | scene/3d/collision_object.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/collision_object.cpp b/scene/3d/collision_object.cpp index 82158405ea..9c388a2883 100644 --- a/scene/3d/collision_object.cpp +++ b/scene/3d/collision_object.cpp @@ -47,6 +47,11 @@ void CollisionObject::_notification(int p_what) { case NOTIFICATION_ENTER_WORLD: { + if (area) + PhysicsServer::get_singleton()->area_set_transform(rid,get_global_transform()); + else + PhysicsServer::get_singleton()->body_set_state(rid,PhysicsServer::BODY_STATE_TRANSFORM,get_global_transform()); + RID space = get_world()->get_space(); if (area) { PhysicsServer::get_singleton()->area_set_space(rid,space); |