summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJosh Grams <josh@qualdan.com>2016-04-24 04:35:21 -0400
committerJosh Grams <josh@qualdan.com>2016-04-24 04:36:51 -0400
commitffaced87a652109bf150f2680b666a8602d04103 (patch)
tree6ef93d82ba4a2b881b1bdb0d85d965200ffd0e22 /scene
parentf7d31cec38c795909c4d1e0917f54aa118d380d7 (diff)
RigidBody2D: rename apply_impulse(pos) to offset.
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/physics_body_2d.cpp4
-rw-r--r--scene/2d/physics_body_2d.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/physics_body_2d.cpp b/scene/2d/physics_body_2d.cpp
index 933e1579b2..517967bf6c 100644
--- a/scene/2d/physics_body_2d.cpp
+++ b/scene/2d/physics_body_2d.cpp
@@ -772,9 +772,9 @@ int RigidBody2D::get_max_contacts_reported() const{
return max_contacts_reported;
}
-void RigidBody2D::apply_impulse(const Vector2& p_pos, const Vector2& p_impulse) {
+void RigidBody2D::apply_impulse(const Vector2& p_offset, const Vector2& p_impulse) {
- Physics2DServer::get_singleton()->body_apply_impulse(get_rid(),p_pos,p_impulse);
+ Physics2DServer::get_singleton()->body_apply_impulse(get_rid(),p_offset,p_impulse);
}
void RigidBody2D::set_applied_force(const Vector2& p_force) {
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index 7523413df3..31dbfbcc6f 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -263,7 +263,7 @@ public:
void set_continuous_collision_detection_mode(CCDMode p_mode);
CCDMode get_continuous_collision_detection_mode() const;
- void apply_impulse(const Vector2& p_pos, const Vector2& p_impulse);
+ void apply_impulse(const Vector2& p_offset, const Vector2& p_impulse);
void set_applied_force(const Vector2& p_force);
Vector2 get_applied_force() const;