diff options
author | Andrea Catania <info@andreacatania.com> | 2018-08-14 19:20:48 +0200 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2018-08-19 13:45:23 +0200 |
commit | 0010d9c82a89e89fc1bc83e806f59f34f3deb893 (patch) | |
tree | aade002a85aa3d8343210ddbcaa61e3049075fec /servers/physics | |
parent | 9826456f2e78b3502f646ffa5445c76c6d31f7ea (diff) |
Added ray shape and move_and_slide with snapping on 3D.
Added stop_on_slope on 2d part
Diffstat (limited to 'servers/physics')
-rw-r--r-- | servers/physics/physics_server_sw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/physics/physics_server_sw.h b/servers/physics/physics_server_sw.h index 1c5754124d..2b3d2ae91f 100644 --- a/servers/physics/physics_server_sw.h +++ b/servers/physics/physics_server_sw.h @@ -231,6 +231,7 @@ public: virtual bool body_is_ray_pickable(RID p_body) const; virtual bool body_test_motion(RID p_body, const Transform &p_from, const Vector3 &p_motion, bool p_infinite_inertia, MotionResult *r_result = NULL); + virtual int body_test_ray_separation(RID p_body, const Transform &p_transform, bool p_infinite_inertia, Vector3 &r_recover_motion, SeparationResult *r_results, int p_result_max, float p_margin = 0.001) { return 0; } // this function only works on physics process, errors and returns null otherwise virtual PhysicsDirectBodyState *body_get_direct_state(RID p_body); |