From 1206bdb71b6618601c9fe14e7054e369c81f96f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 12 Feb 2020 12:17:40 +0100 Subject: Remove deprecated PhysicsBody friction and bounce parameters They were replaced in 3.1 by PhysicsMaterial properties via #12403. --- doc/classes/RigidBody.xml | 8 -------- doc/classes/RigidBody2D.xml | 8 -------- doc/classes/StaticBody.xml | 8 -------- doc/classes/StaticBody2D.xml | 8 -------- 4 files changed, 32 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/RigidBody.xml b/doc/classes/RigidBody.xml index 19c0363963..e2b7813361 100644 --- a/doc/classes/RigidBody.xml +++ b/doc/classes/RigidBody.xml @@ -145,10 +145,6 @@ Lock the body's movement in the Z axis. - - The body's bounciness. Values range from [code]0[/code] (no bounce) to [code]1[/code] (full bounciness). - Deprecated, use [member PhysicsMaterial.bounce] instead via [member physics_material_override]. - If [code]true[/code], the RigidBody will not calculate forces and will act as a static body while there is no movement. It will wake up when forces are applied through other collisions or when the [code]apply_impulse[/code] method is used. @@ -165,10 +161,6 @@ If [code]true[/code], internal force integration will be disabled (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined. - - The body's friction, from 0 (frictionless) to 1 (max friction). - Deprecated, use [member PhysicsMaterial.friction] instead via [member physics_material_override]. - This is multiplied by the global 3D gravity setting found in [b]Project > Project Settings > Physics > 3d[/b] to produce RigidBody's gravity. For example, a value of 1 will be normal gravity, 2 will apply double gravity, and 0.5 will apply half gravity to this object. diff --git a/doc/classes/RigidBody2D.xml b/doc/classes/RigidBody2D.xml index 958c6f0504..79c4205f59 100644 --- a/doc/classes/RigidBody2D.xml +++ b/doc/classes/RigidBody2D.xml @@ -126,10 +126,6 @@ The body's total applied torque. - - The body's bounciness. Values range from [code]0[/code] (no bounce) to [code]1[/code] (full bounciness). - Deprecated, use [member PhysicsMaterial.bounce] instead via [member physics_material_override]. - If [code]true[/code], the body will not calculate forces and will act as a static body if there is no movement. The body will wake up when other forces are applied via collisions or by using [method apply_impulse] or [method add_force]. @@ -146,10 +142,6 @@ If [code]true[/code], internal force integration is disabled for this body. Aside from collision response, the body will only move as determined by the [method _integrate_forces] function. - - The body's friction. Values range from [code]0[/code] (frictionless) to [code]1[/code] (maximum friction). - Deprecated, use [member PhysicsMaterial.friction] instead via [member physics_material_override]. - Multiplies the gravity applied to the body. The body's gravity is calculated from the [b]Default Gravity[/b] value in [b]Project > Project Settings > Physics > 2d[/b] and/or any additional gravity vector applied by [Area2D]s. diff --git a/doc/classes/StaticBody.xml b/doc/classes/StaticBody.xml index ce7584ecda..280b95d182 100644 --- a/doc/classes/StaticBody.xml +++ b/doc/classes/StaticBody.xml @@ -12,20 +12,12 @@ - - The body's bounciness. Values range from [code]0[/code] (no bounce) to [code]1[/code] (full bounciness). - Deprecated, use [member PhysicsMaterial.bounce] instead via [member physics_material_override]. - The body's constant angular velocity. This does not rotate the body, but affects other bodies that touch it, as if it was in a state of rotation. The body's constant linear velocity. This does not move the body, but affects other bodies that touch it, as if it was in a state of movement. - - The body's friction, from 0 (frictionless) to 1 (full friction). - Deprecated, use [member PhysicsMaterial.friction] instead via [member physics_material_override]. - The physics material override for the body. If a material is assigned to this property, it will be used instead of any other physics material, such as an inherited one. diff --git a/doc/classes/StaticBody2D.xml b/doc/classes/StaticBody2D.xml index daa160b8a9..2a5c1ea6f4 100644 --- a/doc/classes/StaticBody2D.xml +++ b/doc/classes/StaticBody2D.xml @@ -12,20 +12,12 @@ - - The body's bounciness. Values range from [code]0[/code] (no bounce) to [code]1[/code] (full bounciness). - Deprecated, use [member PhysicsMaterial.bounce] instead via [member physics_material_override]. - The body's constant angular velocity. This does not rotate the body, but affects colliding bodies, as if it were rotating. The body's constant linear velocity. This does not move the body, but affects colliding bodies, as if it were moving. - - The body's friction. Values range from [code]0[/code] (no friction) to [code]1[/code] (full friction). - Deprecated, use [member PhysicsMaterial.friction] instead via [member physics_material_override]. - The physics material override for the body. If a material is assigned to this property, it will be used instead of any other physics material, such as an inherited one. -- cgit v1.2.3