summaryrefslogtreecommitdiff
path: root/scene/3d/area.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2015-04-29 16:06:25 +0000
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2015-05-18 01:32:26 +0000
commit590afbcac461f87b05391996ca85d32627c81a75 (patch)
tree315f1d8e86537be97a42c99675d29af6b8355b15 /scene/3d/area.cpp
parent473c7222f512488bfea3674358e15cac83d41ffb (diff)
Calculate gravity based on distance from body to gravity point (2D)
Diffstat (limited to 'scene/3d/area.cpp')
-rw-r--r--scene/3d/area.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/area.cpp b/scene/3d/area.cpp
index bcc58c700a..76527c72e6 100644
--- a/scene/3d/area.cpp
+++ b/scene/3d/area.cpp
@@ -42,6 +42,7 @@ Area::SpaceOverride Area::get_space_override_mode() const{
}
void Area::set_gravity_is_point(bool p_enabled){
+
gravity_is_point=p_enabled;
PhysicsServer::get_singleton()->area_set_param(get_rid(),PhysicsServer::AREA_PARAM_GRAVITY_IS_POINT,p_enabled);