aboutsummaryrefslogtreecommitdiff
path: root/servers/physics_2d/physics_2d_server_sw.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-01-03 20:23:44 -0300
committerJuan Linietsky2016-01-03 20:23:44 -0300
commit606729fa2d2741ba7abbc14bc25b80f7ee58dc64 (patch)
tree8437c10a78910712dcc1b6eed4226c6554379d73 /servers/physics_2d/physics_2d_server_sw.cpp
parentd5b8131f27a302992f5910e18ccf07f5eff244e3 (diff)
downloadgodot-606729fa2d2741ba7abbc14bc25b80f7ee58dc64.tar.gz
godot-606729fa2d2741ba7abbc14bc25b80f7ee58dc64.tar.zst
godot-606729fa2d2741ba7abbc14bc25b80f7ee58dc64.zip
physics state properly returns contact metadata, closes #1979
Diffstat (limited to 'servers/physics_2d/physics_2d_server_sw.cpp')
-rw-r--r--servers/physics_2d/physics_2d_server_sw.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics_2d/physics_2d_server_sw.cpp b/servers/physics_2d/physics_2d_server_sw.cpp
index d17d49972..c57133149 100644
--- a/servers/physics_2d/physics_2d_server_sw.cpp
+++ b/servers/physics_2d/physics_2d_server_sw.cpp
@@ -1322,8 +1322,11 @@ int Physics2DServerSW::get_process_info(ProcessInfo p_info) {
}
+Physics2DServerSW *Physics2DServerSW::singletonsw=NULL;
+
Physics2DServerSW::Physics2DServerSW() {
+ singletonsw=this;
BroadPhase2DSW::create_func=BroadPhase2DHashGrid::_create;
// BroadPhase2DSW::create_func=BroadPhase2DBasic::_create;