diff options
| author | Juan Linietsky | 2015-04-19 20:50:55 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-04-19 20:50:55 -0300 |
| commit | 28c4afeb5733f9ca9725ab2a5f4066af8e02b2a6 (patch) | |
| tree | bccdcd878d023b34d1458e37de657138f6c66e72 /servers/physics_2d/space_2d_sw.h | |
| parent | 1de1a04b78b65254aa41d7930947df82a121160c (diff) | |
| download | godot-28c4afeb5733f9ca9725ab2a5f4066af8e02b2a6.tar.gz godot-28c4afeb5733f9ca9725ab2a5f4066af8e02b2a6.tar.zst godot-28c4afeb5733f9ca9725ab2a5f4066af8e02b2a6.zip | |
-Rewritten KinematicBody2D::move to MUCH more efficient code.
-KinematicBody2D::move now properly recognizes collision exceptions and masks, fixes #1649
-Removed object type masking for KinematicBody2D
-Added a test_motion() function to RigidBody2D, allowing simlar behavior to KinematicBody2D::move there.
Diffstat (limited to 'servers/physics_2d/space_2d_sw.h')
| -rw-r--r-- | servers/physics_2d/space_2d_sw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/physics_2d/space_2d_sw.h b/servers/physics_2d/space_2d_sw.h index d100ada9d..95a576609 100644 --- a/servers/physics_2d/space_2d_sw.h +++ b/servers/physics_2d/space_2d_sw.h @@ -165,6 +165,8 @@ public: int get_collision_pairs() const { return collision_pairs; } + bool test_body_motion(Body2DSW *p_body, const Vector2&p_motion, float p_margin, Physics2DServer::MotionResult *r_result); + Physics2DDirectSpaceStateSW *get_direct_state(); Space2DSW(); |
