Skip to content

Latest commit

 

History

History
94 lines (66 loc) · 3.02 KB

class_physicsmaterial.rst

File metadata and controls

94 lines (66 loc) · 3.02 KB
github_url:hide

PhysicsMaterial

Inherits: :ref:`Resource<class_Resource>` < :ref:`Reference<class_Reference>` < :ref:`Object<class_Object>`

A material for physics properties.

Description

Provides a means of modifying the collision properties of a :ref:`PhysicsBody<class_PhysicsBody>`.

Properties

:ref:`bool<class_bool>` :ref:`absorbent<class_PhysicsMaterial_property_absorbent>` false
:ref:`float<class_float>` :ref:`bounce<class_PhysicsMaterial_property_bounce>` 0.0
:ref:`float<class_float>` :ref:`friction<class_PhysicsMaterial_property_friction>` 1.0
:ref:`bool<class_bool>` :ref:`rough<class_PhysicsMaterial_property_rough>` false

Property Descriptions

Default false
Setter set_absorbent(value)
Getter is_absorbent()

Default 0.0
Setter set_bounce(value)
Getter get_bounce()

The body's bounciness. Values range from 0 (no bounce) to 1 (full bounciness).


Default 1.0
Setter set_friction(value)
Getter get_friction()

The body's friction. Values range from 0 (frictionless) to 1 (maximum friction).


Default false
Setter set_rough(value)
Getter is_rough()