summaryrefslogtreecommitdiff
path: root/servers/physics_2d_server.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-09 11:01:36 +0200
committerGitHub <noreply@github.com>2017-10-09 11:01:36 +0200
commit8e9b99fe59a360c0c9822e8e3e8f53afd1a72b5c (patch)
tree63645c75c3ab6ea2b8052e32870a21a8194fda83 /servers/physics_2d_server.h
parent30a4882cf808f04a80bf0b6a3c879c8e9a74f673 (diff)
parentc56c67db39b619d37c503e41e718f9cda39c3f0e (diff)
Merge pull request #11702 from AndreaCatania/bodyDS
Added new API to get body direct state
Diffstat (limited to 'servers/physics_2d_server.h')
-rw-r--r--servers/physics_2d_server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics_2d_server.h b/servers/physics_2d_server.h
index 34f885db1d..18f4f460b6 100644
--- a/servers/physics_2d_server.h
+++ b/servers/physics_2d_server.h
@@ -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;