Class: MSPhysics::Material
- Defined in:
- RubyExtension/MSPhysics/material.rb
Overview
Instance Method Summary collapse
-
#density ⇒ Numeric
Get material density in kilograms per cubic meter (kg/m^3).
-
#density=(value) ⇒ Object
Set material density in kilograms per cubic meter (kg/m^3).
-
#elasticity ⇒ Numeric
Get material coefficient of restitution - bounciness.
-
#elasticity=(coefficient) ⇒ Object
Set material coefficient of restitution - bounciness.
-
#equals?(other_material) ⇒ Boolean
Determine whether thi material has the same properties as another material.
-
#initialize(name, density, static_friction, kinetic_friction, elasticity, softness) ⇒ Material
constructor
A new instance of Material.
-
#kinetic_friction ⇒ Numeric
Get material kinetic friction coefficient.
-
#kinetic_friction=(coefficient) ⇒ Object
Set material kinetic friction coefficient.
-
#name ⇒ String
Get material name.
-
#softness ⇒ Numeric
Get material softness coefficient.
-
#softness=(coefficient) ⇒ Object
Set material softness coefficient.
-
#static_friction ⇒ Numeric
Get material static friction coefficient.
-
#static_friction=(coefficient) ⇒ Object
Set material static friction coefficient.
Methods inherited from Entity
Constructor Details
#initialize(name, density, static_friction, kinetic_friction, elasticity, softness) ⇒ Material
Returns a new instance of Material
Instance Method Details
#density ⇒ Numeric
Get material density in kilograms per cubic meter (kg/m^3).
#density=(value) ⇒ Object
Set material density in kilograms per cubic meter (kg/m^3).
#elasticity ⇒ Numeric
Get material coefficient of restitution - bounciness.
#elasticity=(coefficient) ⇒ Object
Set material coefficient of restitution - bounciness.
#equals?(other_material) ⇒ Boolean
Determine whether thi material has the same properties as another material.
#kinetic_friction ⇒ Numeric
Get material kinetic friction coefficient.
#kinetic_friction=(coefficient) ⇒ Object
Set material kinetic friction coefficient.
#name ⇒ String
Get material name.
#softness ⇒ Numeric
Get material softness coefficient.
#softness=(coefficient) ⇒ Object
Set material softness coefficient.
#static_friction ⇒ Numeric
Get material static friction coefficient.
#static_friction=(coefficient) ⇒ Object
Set material static friction coefficient.