From b999f71b091e1b833b6202c3d3af049f12bb480d Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 6 Apr 2021 03:54:10 -0400 Subject: [PATCH] Document physics material (#4817) --- tutorials/physics/physics_introduction.rst | 7 +++++++ tutorials/physics/rigid_body.rst | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tutorials/physics/physics_introduction.rst b/tutorials/physics/physics_introduction.rst index 4ac36587c..300feb199 100644 --- a/tutorials/physics/physics_introduction.rst +++ b/tutorials/physics/physics_introduction.rst @@ -51,6 +51,13 @@ The other three bodies extend :ref:`PhysicsBody2D `: A body that provides collision detection, but no physics. All movement and collision response must be implemented in code. +Physics material +~~~~~~~~~~~~~~~~ + +Static bodies and rigid bodies can be configured to use a :ref:`physics material +`. This allows adjusting the friction and bounce of an object, +and set if it's absorbent and/or rough. + Collision shapes ~~~~~~~~~~~~~~~~ diff --git a/tutorials/physics/rigid_body.rst b/tutorials/physics/rigid_body.rst index cd2820b30..0465e6dfa 100644 --- a/tutorials/physics/rigid_body.rst +++ b/tutorials/physics/rigid_body.rst @@ -12,7 +12,11 @@ In order to define the shape of the body, it must have one or more :ref:`Shape < How to control a rigid body --------------------------- -A rigid body's behavior can be altered by setting its properties, such as friction, mass, bounce, etc. These properties can be set in the Inspector or via code. See :ref:`RigidBody ` for the full list of properties and their effects. +A rigid body's behavior can be altered by setting its properties, such as mass and weight. +A physics material needs to be added to the rigid body to adjust its friction and bounce, +and set if it's absorbent and/or rough. These properties can be set in the Inspector or via code. +See :ref:`RigidBody ` and :ref:`PhysicsMaterial ` for +the full list of properties and their effects. There are several ways to control a rigid body's movement, depending on your desired application.