:github_url: hide .. 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//doc_classes. .. _class_PhysicsMaterial: PhysicsMaterial =============== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- A material for physics properties. Properties ---------- +---------------------------+------------------------------------------------------------+ | :ref:`bool` | :ref:`absorbent` | +---------------------------+------------------------------------------------------------+ | :ref:`float` | :ref:`bounce` | +---------------------------+------------------------------------------------------------+ | :ref:`float` | :ref:`friction` | +---------------------------+------------------------------------------------------------+ | :ref:`bool` | :ref:`rough` | +---------------------------+------------------------------------------------------------+ Description ----------- Provides a means of modifying the collision properties of a :ref:`PhysicsBody`. Property Descriptions --------------------- .. _class_PhysicsMaterial_property_absorbent: - :ref:`bool` **absorbent** +----------+----------------------+ | *Setter* | set_absorbent(value) | +----------+----------------------+ | *Getter* | is_absorbent() | +----------+----------------------+ ---- .. _class_PhysicsMaterial_property_bounce: - :ref:`float` **bounce** +----------+-------------------+ | *Setter* | set_bounce(value) | +----------+-------------------+ | *Getter* | get_bounce() | +----------+-------------------+ The body's bounciness. Default value: ``0``. ---- .. _class_PhysicsMaterial_property_friction: - :ref:`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_property_rough: - :ref:`bool` **rough** +----------+------------------+ | *Setter* | set_rough(value) | +----------+------------------+ | *Getter* | is_rough() | +----------+------------------+