mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Add property overview and setter/getter like in editor docs
Output from godotengine/godot#22013. Fixes #1729.
This commit is contained in:
@@ -8,6 +8,7 @@ PhysicsMaterial
|
||||
===============
|
||||
|
||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
@@ -15,6 +16,19 @@ Brief Description
|
||||
|
||||
A material for physics properties.
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
+---------------------------+---------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`absorbent<class_PhysicsMaterial_absorbent>` |
|
||||
+---------------------------+---------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`bounce<class_PhysicsMaterial_bounce>` |
|
||||
+---------------------------+---------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`friction<class_PhysicsMaterial_friction>` |
|
||||
+---------------------------+---------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`rough<class_PhysicsMaterial_rough>` |
|
||||
+---------------------------+---------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -27,16 +41,43 @@ Property Descriptions
|
||||
|
||||
- :ref:`bool<class_bool>` **absorbent**
|
||||
|
||||
+----------+----------------------+
|
||||
| *Setter* | set_absorbent(value) |
|
||||
+----------+----------------------+
|
||||
| *Getter* | is_absorbent() |
|
||||
+----------+----------------------+
|
||||
|
||||
.. _class_PhysicsMaterial_bounce:
|
||||
|
||||
- :ref:`float<class_float>` **bounce** - The body's bounciness. Default value: ``0``.
|
||||
- :ref:`float<class_float>` **bounce**
|
||||
|
||||
+----------+-------------------+
|
||||
| *Setter* | set_bounce(value) |
|
||||
+----------+-------------------+
|
||||
| *Getter* | get_bounce() |
|
||||
+----------+-------------------+
|
||||
|
||||
The body's bounciness. Default value: ``0``.
|
||||
|
||||
.. _class_PhysicsMaterial_friction:
|
||||
|
||||
- :ref:`float<class_float>` **friction** - The body's friction. Values range from ``0`` (frictionless) to ``1`` (maximum friction). Default value: ``1``.
|
||||
- :ref:`float<class_float>` **friction**
|
||||
|
||||
+----------+---------------------+
|
||||
| *Setter* | set_friction(value) |
|
||||
+----------+---------------------+
|
||||
| *Getter* | get_friction() |
|
||||
+----------+---------------------+
|
||||
|
||||
The body's friction. Values range from ``0`` (frictionless) to ``1`` (maximum friction). Default value: ``1``.
|
||||
|
||||
.. _class_PhysicsMaterial_rough:
|
||||
|
||||
- :ref:`bool<class_bool>` **rough**
|
||||
|
||||
+----------+------------------+
|
||||
| *Setter* | set_rough(value) |
|
||||
+----------+------------------+
|
||||
| *Getter* | is_rough() |
|
||||
+----------+------------------+
|
||||
|
||||
|
||||
Reference in New Issue
Block a user