From 9012cd408e240d6039120e56fdd47a0983890993 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 13 Jan 2015 21:19:11 -0300 Subject: -Add support for one-way collision in 2D (only works for kinematic body so far) -Solve drawing order bug introduced in previous commit: solves #1214 --- servers/physics_2d/body_2d_sw.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'servers/physics_2d/body_2d_sw.cpp') diff --git a/servers/physics_2d/body_2d_sw.cpp b/servers/physics_2d/body_2d_sw.cpp index d93d4d5c35..1cfe9a6ab9 100644 --- a/servers/physics_2d/body_2d_sw.cpp +++ b/servers/physics_2d/body_2d_sw.cpp @@ -647,6 +647,7 @@ Body2DSW::Body2DSW() : CollisionObject2DSW(TYPE_BODY), active_list(this), inerti area_linear_damp=0; contact_count=0; gravity_scale=1.0; + one_way_collision_max_depth=0.1; still_time=0; continuous_cd_mode=Physics2DServer::CCD_MODE_DISABLED; -- cgit v1.2.3