Material class

Defines a physics material.

Constructors

Material({double friction = -1, double restitution = -1, String name = ''})

Properties

friction double
Friction for this material. If non-negative, it will be used instead of the friction given by ContactMaterials. If there's no matching ContactMaterial, the value from defaultContactMaterial in the World will be used.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
Material id. */
getter/setter pair
name String
Material name. If options is a string, name will be set to that string. @todo Deprecate this
getter/setter pair
restitution double
Restitution for this material. If non-negative, it will be used instead of the restitution given by ContactMaterials. If there's no matching ContactMaterial, the value from defaultContactMaterial in the World will be used.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

idCounter int
getter/setter pair