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
ecdfeec5
Unverified
Commit
ecdfeec5
authored
Dec 21, 2019
by
Rémi Verschelde
Committed by
GitHub
Dec 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34526 from Calinou/add-contacts-reported-hint
Add a range property hint for the number of contacts reported
parents
34ddb7ac
0a5b30b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
physics_body_2d.cpp
scene/2d/physics_body_2d.cpp
+1
-1
physics_body.cpp
scene/3d/physics_body.cpp
+1
-1
No files found.
scene/2d/physics_body_2d.cpp
View file @
ecdfeec5
...
...
@@ -1051,7 +1051,7 @@ void RigidBody2D::_bind_methods() {
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
REAL
,
"gravity_scale"
,
PROPERTY_HINT_RANGE
,
"-128,128,0.01"
),
"set_gravity_scale"
,
"get_gravity_scale"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"custom_integrator"
),
"set_use_custom_integrator"
,
"is_using_custom_integrator"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
INT
,
"continuous_cd"
,
PROPERTY_HINT_ENUM
,
"Disabled,Cast Ray,Cast Shape"
),
"set_continuous_collision_detection_mode"
,
"get_continuous_collision_detection_mode"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
INT
,
"contacts_reported"
),
"set_max_contacts_reported"
,
"get_max_contacts_reported"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
INT
,
"contacts_reported"
,
PROPERTY_HINT_RANGE
,
"0,64,1,or_greater"
),
"set_max_contacts_reported"
,
"get_max_contacts_reported"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"contact_monitor"
),
"set_contact_monitor"
,
"is_contact_monitor_enabled"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"sleeping"
),
"set_sleeping"
,
"is_sleeping"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"can_sleep"
),
"set_can_sleep"
,
"is_able_to_sleep"
);
...
...
scene/3d/physics_body.cpp
View file @
ecdfeec5
...
...
@@ -1014,7 +1014,7 @@ void RigidBody::_bind_methods() {
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
REAL
,
"gravity_scale"
,
PROPERTY_HINT_RANGE
,
"-128,128,0.01"
),
"set_gravity_scale"
,
"get_gravity_scale"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"custom_integrator"
),
"set_use_custom_integrator"
,
"is_using_custom_integrator"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"continuous_cd"
),
"set_use_continuous_collision_detection"
,
"is_using_continuous_collision_detection"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
INT
,
"contacts_reported"
),
"set_max_contacts_reported"
,
"get_max_contacts_reported"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
INT
,
"contacts_reported"
,
PROPERTY_HINT_RANGE
,
"0,64,1,or_greater"
),
"set_max_contacts_reported"
,
"get_max_contacts_reported"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"contact_monitor"
),
"set_contact_monitor"
,
"is_contact_monitor_enabled"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"sleeping"
),
"set_sleeping"
,
"is_sleeping"
);
ADD_PROPERTY
(
PropertyInfo
(
Variant
::
BOOL
,
"can_sleep"
),
"set_can_sleep"
,
"is_able_to_sleep"
);
...
...
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