diff options
| author | Juan Linietsky | 2017-11-09 23:34:01 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-11-09 23:35:34 -0300 |
| commit | 192a4d7de5c557bdfe83bd180cd603d7e280ebd4 (patch) | |
| tree | 94ce9779b3f84fbc320ba83624e326d487ca1c04 /servers/physics_2d_server.cpp | |
| parent | 0de6cba7e7e114f71fabb3dbe02cf260f7d3e2c6 (diff) | |
| download | godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.tar.gz godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.tar.zst godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.zip | |
Diffstat (limited to 'servers/physics_2d_server.cpp')
| -rw-r--r-- | servers/physics_2d_server.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/servers/physics_2d_server.cpp b/servers/physics_2d_server.cpp index 130c0583d..a5128c943 100644 --- a/servers/physics_2d_server.cpp +++ b/servers/physics_2d_server.cpp @@ -475,7 +475,15 @@ bool Physics2DServer::_body_test_motion(RID p_body, const Transform2D &p_from, c void Physics2DServer::_bind_methods() { - ClassDB::bind_method(D_METHOD("shape_create", "type"), &Physics2DServer::shape_create); + ClassDB::bind_method(D_METHOD("line_shape_create"), &Physics2DServer::line_shape_create); + ClassDB::bind_method(D_METHOD("ray_shape_create"), &Physics2DServer::ray_shape_create); + ClassDB::bind_method(D_METHOD("segment_shape_create"), &Physics2DServer::segment_shape_create); + ClassDB::bind_method(D_METHOD("circle_shape_create"), &Physics2DServer::circle_shape_create); + ClassDB::bind_method(D_METHOD("rectangle_shape_create"), &Physics2DServer::rectangle_shape_create); + ClassDB::bind_method(D_METHOD("capsule_shape_create"), &Physics2DServer::capsule_shape_create); + ClassDB::bind_method(D_METHOD("convex_polygon_shape_create"), &Physics2DServer::convex_polygon_shape_create); + ClassDB::bind_method(D_METHOD("concave_polygon_shape_create"), &Physics2DServer::concave_polygon_shape_create); + ClassDB::bind_method(D_METHOD("shape_set_data", "shape", "data"), &Physics2DServer::shape_set_data); ClassDB::bind_method(D_METHOD("shape_get_type", "shape"), &Physics2DServer::shape_get_type); |
