|
@@ -192,8 +192,8 @@ void StaticBody::set_friction(real_t p_friction) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- ERR_EXPLAIN("The method set_friction has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method set_friction has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
ERR_FAIL_COND(p_friction < 0 || p_friction > 1);
|
|
|
|
|
@@ -206,8 +206,8 @@ void StaticBody::set_friction(real_t p_friction) {
|
|
|
|
|
|
real_t StaticBody::get_friction() const {
|
|
|
|
|
|
- ERR_EXPLAIN("The method get_friction has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method get_friction has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
if (physics_material_override.is_null()) {
|
|
|
return 1;
|
|
@@ -222,8 +222,8 @@ void StaticBody::set_bounce(real_t p_bounce) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- ERR_EXPLAIN("The method set_bounce has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method set_bounce has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
ERR_FAIL_COND(p_bounce < 0 || p_bounce > 1);
|
|
|
|
|
@@ -236,8 +236,8 @@ void StaticBody::set_bounce(real_t p_bounce) {
|
|
|
|
|
|
real_t StaticBody::get_bounce() const {
|
|
|
|
|
|
- ERR_EXPLAIN("The method get_bounce has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method get_bounce has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
if (physics_material_override.is_null()) {
|
|
|
return 0;
|
|
@@ -636,8 +636,8 @@ void RigidBody::set_friction(real_t p_friction) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- ERR_EXPLAIN("The method set_friction has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method set_friction has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
ERR_FAIL_COND(p_friction < 0 || p_friction > 1);
|
|
|
|
|
@@ -649,8 +649,8 @@ void RigidBody::set_friction(real_t p_friction) {
|
|
|
}
|
|
|
real_t RigidBody::get_friction() const {
|
|
|
|
|
|
- ERR_EXPLAIN("The method get_friction has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method get_friction has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
if (physics_material_override.is_null()) {
|
|
|
return 1;
|
|
@@ -665,8 +665,8 @@ void RigidBody::set_bounce(real_t p_bounce) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- ERR_EXPLAIN("The method set_bounce has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method set_bounce has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
|
|
|
ERR_FAIL_COND(p_bounce < 0 || p_bounce > 1);
|
|
|
|
|
@@ -677,8 +677,8 @@ void RigidBody::set_bounce(real_t p_bounce) {
|
|
|
physics_material_override->set_bounce(p_bounce);
|
|
|
}
|
|
|
real_t RigidBody::get_bounce() const {
|
|
|
- ERR_EXPLAIN("The method get_bounce has been deprecated and will be removed in the future, use physics material instead.")
|
|
|
- WARN_DEPRECATED
|
|
|
+ ERR_EXPLAIN("The method get_bounce has been deprecated and will be removed in the future, use physics material instead.");
|
|
|
+ WARN_DEPRECATED;
|
|
|
if (physics_material_override.is_null()) {
|
|
|
return 0;
|
|
|
}
|