From 606729fa2d2741ba7abbc14bc25b80f7ee58dc64 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 3 Jan 2016 20:23:44 -0300 Subject: physics state properly returns contact metadata, closes #1979 --- servers/physics_2d/physics_2d_server_sw.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servers/physics_2d/physics_2d_server_sw.cpp') 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; -- cgit v1.2.3-70-g09d2