summaryrefslogtreecommitdiffstats
path: root/servers/physics_2d/body_2d_sw.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-08-30 18:57:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-08-30 18:57:17 -0300
commit2d8866574dd2c06ac03e7055642b917a0a3c6dac (patch)
treee04effe8e78eba750951ad9350bc40369a97c189 /servers/physics_2d/body_2d_sw.h
parentcb6839c5c1a6ada31a2c00ffa4645fe81fca922f (diff)
downloadredot-engine-2d8866574dd2c06ac03e7055642b917a0a3c6dac.tar.gz
Added gravity scale, and linear/angular damp override to 3D physics.
Diffstat (limited to 'servers/physics_2d/body_2d_sw.h')
-rw-r--r--servers/physics_2d/body_2d_sw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/physics_2d/body_2d_sw.h b/servers/physics_2d/body_2d_sw.h
index c86bb51f1d..2fbfcaca60 100644
--- a/servers/physics_2d/body_2d_sw.h
+++ b/servers/physics_2d/body_2d_sw.h
@@ -337,9 +337,9 @@ public:
Body2DSW *body;
real_t step;
- virtual Vector2 get_total_gravity() const { return body->get_gravity(); } // get gravity vector working on this body space/area
- virtual float get_total_angular_damp() const { return body->get_angular_damp(); } // get density of this body space/area
- virtual float get_total_linear_damp() const { return body->get_linear_damp(); } // get density of this body space/area
+ virtual Vector2 get_total_gravity() const { return body->gravity; } // get gravity vector working on this body space/area
+ virtual float get_total_angular_damp() const { return body->area_angular_damp; } // get density of this body space/area
+ virtual float get_total_linear_damp() const { return body->area_linear_damp; } // get density of this body space/area
virtual float get_inverse_mass() const { return body->get_inv_mass(); } // get the mass
virtual real_t get_inverse_inertia() const { return body->get_inv_inertia(); } // get density of this body space