W3cubDocs

/Godot 3.1

PhysicsMaterial

Inherits: Resource < Reference < Object

Category: Core

Brief Description

A material for physics properties.

Properties

bool absorbent
float bounce
float friction
bool rough

Description

Provides a means of modifying the collision properties of a PhysicsBody.

Property Descriptions

bool absorbent

Setter set_absorbent(value)
Getter is_absorbent()

float bounce

Setter set_bounce(value)
Getter get_bounce()

The body’s bounciness. Default value: 0.

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.

bool rough

Setter set_rough(value)
Getter is_rough()

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_physicsmaterial.html