mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
43 lines
1.1 KiB
ReStructuredText
43 lines
1.1 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the PhysicsMaterial.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_PhysicsMaterial:
|
|
|
|
PhysicsMaterial
|
|
===============
|
|
|
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
A material for physics properties.
|
|
|
|
Description
|
|
-----------
|
|
|
|
Provides a means of modifying the collision properties of a :ref:`PhysicsBody<class_PhysicsBody>`.
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_PhysicsMaterial_absorbent:
|
|
|
|
- :ref:`bool<class_bool>` **absorbent**
|
|
|
|
.. _class_PhysicsMaterial_bounce:
|
|
|
|
- :ref:`float<class_float>` **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``.
|
|
|
|
.. _class_PhysicsMaterial_rough:
|
|
|
|
- :ref:`bool<class_bool>` **rough**
|
|
|
|
|