Class

PhysicsMaterialResource

Material properties, like friction, of a physically simulated object.

Declaration

class PhysicsMaterialResource

Topics

Using the Default Material Resource

Creating a Custom Material Resource

static func generate(friction: Float, restitution: Float) -> PhysicsMaterialResource

Generates a new material with the given characteristics.

Relationships

Conforms To

See Also

Setting Material Properties

var material: PhysicsMaterialResource

The physics body’s material properties, like friction.