Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
0562b78f
Commit
0562b78f
authored
Apr 30, 2019
by
LATRio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly expose PhysicsServer methods
parent
e949d6c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
physics_2d_server.cpp
servers/physics_2d_server.cpp
+4
-4
physics_server.cpp
servers/physics_server.cpp
+4
-2
No files found.
servers/physics_2d_server.cpp
View file @
0562b78f
...
...
@@ -567,10 +567,10 @@ void Physics2DServer::_bind_methods() {
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_space_override_mode"
,
"area"
,
"mode"
),
&
Physics2DServer
::
area_set_space_override_mode
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_get_space_override_mode"
,
"area"
),
&
Physics2DServer
::
area_get_space_override_mode
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_add_shape"
,
"area"
,
"shape"
,
"transform"
),
&
Physics2DServer
::
area_add_shape
,
DEFVAL
(
Transform2D
()
));
ClassDB
::
bind_method
(
D_METHOD
(
"area_add_shape"
,
"area"
,
"shape"
,
"transform"
,
"disabled"
),
&
Physics2DServer
::
area_add_shape
,
DEFVAL
(
Transform2D
()),
DEFVAL
(
false
));
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape"
,
"area"
,
"shape_idx"
,
"shape"
),
&
Physics2DServer
::
area_set_shape
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape_transform"
,
"area"
,
"shape_idx"
,
"transform"
),
&
Physics2DServer
::
area_set_shape_transform
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape_disabled"
,
"area"
,
"shape_idx"
,
"disable"
),
&
Physics2DServer
::
area_set_shape_disabled
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape_disabled"
,
"area"
,
"shape_idx"
,
"disable
d
"
),
&
Physics2DServer
::
area_set_shape_disabled
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_get_shape_count"
,
"area"
),
&
Physics2DServer
::
area_get_shape_count
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_get_shape"
,
"area"
,
"shape_idx"
),
&
Physics2DServer
::
area_get_shape
);
...
...
@@ -606,7 +606,7 @@ void Physics2DServer::_bind_methods() {
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_mode"
,
"body"
,
"mode"
),
&
Physics2DServer
::
body_set_mode
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_get_mode"
,
"body"
),
&
Physics2DServer
::
body_get_mode
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_add_shape"
,
"body"
,
"shape"
,
"transform"
),
&
Physics2DServer
::
body_add_shape
,
DEFVAL
(
Transform2D
()
));
ClassDB
::
bind_method
(
D_METHOD
(
"body_add_shape"
,
"body"
,
"shape"
,
"transform"
,
"disabled"
),
&
Physics2DServer
::
body_add_shape
,
DEFVAL
(
Transform2D
()),
DEFVAL
(
false
));
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape"
,
"body"
,
"shape_idx"
,
"shape"
),
&
Physics2DServer
::
body_set_shape
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_transform"
,
"body"
,
"shape_idx"
,
"transform"
),
&
Physics2DServer
::
body_set_shape_transform
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_metadata"
,
"body"
,
"shape_idx"
,
"metadata"
),
&
Physics2DServer
::
body_set_shape_metadata
);
...
...
@@ -619,7 +619,7 @@ void Physics2DServer::_bind_methods() {
ClassDB
::
bind_method
(
D_METHOD
(
"body_remove_shape"
,
"body"
,
"shape_idx"
),
&
Physics2DServer
::
body_remove_shape
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_clear_shapes"
,
"body"
),
&
Physics2DServer
::
body_clear_shapes
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_disabled"
,
"body"
,
"shape_idx"
,
"disable"
),
&
Physics2DServer
::
body_set_shape_disabled
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_disabled"
,
"body"
,
"shape_idx"
,
"disable
d
"
),
&
Physics2DServer
::
body_set_shape_disabled
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_as_one_way_collision"
,
"body"
,
"shape_idx"
,
"enable"
,
"margin"
),
&
Physics2DServer
::
body_set_shape_as_one_way_collision
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_attach_object_instance_id"
,
"body"
,
"id"
),
&
Physics2DServer
::
body_attach_object_instance_id
);
...
...
servers/physics_server.cpp
View file @
0562b78f
...
...
@@ -427,9 +427,10 @@ void PhysicsServer::_bind_methods() {
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_space_override_mode"
,
"area"
,
"mode"
),
&
PhysicsServer
::
area_set_space_override_mode
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_get_space_override_mode"
,
"area"
),
&
PhysicsServer
::
area_get_space_override_mode
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_add_shape"
,
"area"
,
"shape"
,
"transform"
),
&
PhysicsServer
::
area_add_shape
,
DEFVAL
(
Transform
()
));
ClassDB
::
bind_method
(
D_METHOD
(
"area_add_shape"
,
"area"
,
"shape"
,
"transform"
,
"disabled"
),
&
PhysicsServer
::
area_add_shape
,
DEFVAL
(
Transform
()),
DEFVAL
(
false
));
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape"
,
"area"
,
"shape_idx"
,
"shape"
),
&
PhysicsServer
::
area_set_shape
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape_transform"
,
"area"
,
"shape_idx"
,
"transform"
),
&
PhysicsServer
::
area_set_shape_transform
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_set_shape_disabled"
,
"area"
,
"shape_idx"
,
"disabled"
),
&
PhysicsServer
::
area_set_shape_disabled
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_get_shape_count"
,
"area"
),
&
PhysicsServer
::
area_get_shape_count
);
ClassDB
::
bind_method
(
D_METHOD
(
"area_get_shape"
,
"area"
,
"shape_idx"
),
&
PhysicsServer
::
area_get_shape
);
...
...
@@ -471,9 +472,10 @@ void PhysicsServer::_bind_methods() {
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_collision_mask"
,
"body"
,
"mask"
),
&
PhysicsServer
::
body_set_collision_mask
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_get_collision_mask"
,
"body"
),
&
PhysicsServer
::
body_get_collision_mask
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_add_shape"
,
"body"
,
"shape"
,
"transform"
),
&
PhysicsServer
::
body_add_shape
,
DEFVAL
(
Transform
()
));
ClassDB
::
bind_method
(
D_METHOD
(
"body_add_shape"
,
"body"
,
"shape"
,
"transform"
,
"disabled"
),
&
PhysicsServer
::
body_add_shape
,
DEFVAL
(
Transform
()),
DEFVAL
(
false
));
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape"
,
"body"
,
"shape_idx"
,
"shape"
),
&
PhysicsServer
::
body_set_shape
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_transform"
,
"body"
,
"shape_idx"
,
"transform"
),
&
PhysicsServer
::
body_set_shape_transform
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_set_shape_disabled"
,
"body"
,
"shape_idx"
,
"disabled"
),
&
PhysicsServer
::
body_set_shape_disabled
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_get_shape_count"
,
"body"
),
&
PhysicsServer
::
body_get_shape_count
);
ClassDB
::
bind_method
(
D_METHOD
(
"body_get_shape"
,
"body"
,
"shape_idx"
),
&
PhysicsServer
::
body_get_shape
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment