aboutsummaryrefslogtreecommitdiff
path: root/servers/physics_2d_server.h
diff options
context:
space:
mode:
authorAndreaCatania2017-09-29 17:33:30 +0200
committerAndreaCatania2017-09-29 17:33:30 +0200
commitc56c67db39b619d37c503e41e718f9cda39c3f0e (patch)
tree2fa62c7103a09e3c0b2baeface159613ae6d5cba /servers/physics_2d_server.h
parentdee100139008bd4dd8c270da6a7f5aa326a32c25 (diff)
downloadgodot-c56c67db39b619d37c503e41e718f9cda39c3f0e.tar.gz
godot-c56c67db39b619d37c503e41e718f9cda39c3f0e.tar.zst
godot-c56c67db39b619d37c503e41e718f9cda39c3f0e.zip
Diffstat (limited to 'servers/physics_2d_server.h')
-rw-r--r--servers/physics_2d_server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/servers/physics_2d_server.h b/servers/physics_2d_server.h
index ddf89663c..18f4f460b 100644
--- a/servers/physics_2d_server.h
+++ b/servers/physics_2d_server.h
@@ -283,7 +283,7 @@ public:
virtual void space_set_param(RID p_space, SpaceParameter p_param, real_t p_value) = 0;
virtual real_t space_get_param(RID p_space, SpaceParameter p_param) const = 0;
- // this function only works on fixed process, errors and returns null otherwise
+ // this function only works on physics process, errors and returns null otherwise
virtual Physics2DDirectSpaceState *space_get_direct_state(RID p_space) = 0;
virtual void space_set_debug_contacts(RID p_space, int p_max_contacts) = 0;
@@ -468,6 +468,9 @@ public:
virtual void body_set_pickable(RID p_body, bool p_pickable) = 0;
+ // this function only works on physics process, errors and returns null otherwise
+ virtual Physics2DDirectBodyState *body_get_direct_state(RID p_body) = 0;
+
struct MotionResult {
Vector2 motion;