Class: Box2D::SurfaceMaterial
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::SurfaceMaterial
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #customColor ⇒ Object
- #customColor=(v) ⇒ Object
- #friction ⇒ Object
- #friction=(v) ⇒ Object
- #material ⇒ Object
- #material=(v) ⇒ Object
- #restitution ⇒ Object
- #restitution=(v) ⇒ Object
- #rollingResistance ⇒ Object
- #rollingResistance=(v) ⇒ Object
- #tangentSpeed ⇒ Object
- #tangentSpeed=(v) ⇒ Object
Class Method Details
.create_as(_friction_, _restitution_, _rollingResistance_, _tangentSpeed_, _material_, _customColor_) ⇒ Object
534 535 536 537 538 539 540 541 542 543 |
# File 'lib/box2d_types.rb', line 534 def self.create_as(_friction_, _restitution_, _rollingResistance_, _tangentSpeed_, _material_, _customColor_) instance = SurfaceMaterial.new instance[:friction] = _friction_ instance[:restitution] = _restitution_ instance[:rollingResistance] = _rollingResistance_ instance[:tangentSpeed] = _tangentSpeed_ instance[:material] = _material_ instance[:customColor] = _customColor_ instance end |
Instance Method Details
#customColor ⇒ Object
532 |
# File 'lib/box2d_types.rb', line 532 def customColor = self[:customColor] |
#customColor=(v) ⇒ Object
533 |
# File 'lib/box2d_types.rb', line 533 def customColor=(v) self[:customColor] = v end |
#friction ⇒ Object
522 |
# File 'lib/box2d_types.rb', line 522 def friction = self[:friction] |
#friction=(v) ⇒ Object
523 |
# File 'lib/box2d_types.rb', line 523 def friction=(v) self[:friction] = v end |
#material ⇒ Object
530 |
# File 'lib/box2d_types.rb', line 530 def material = self[:material] |
#material=(v) ⇒ Object
531 |
# File 'lib/box2d_types.rb', line 531 def material=(v) self[:material] = v end |
#restitution ⇒ Object
524 |
# File 'lib/box2d_types.rb', line 524 def restitution = self[:restitution] |
#restitution=(v) ⇒ Object
525 |
# File 'lib/box2d_types.rb', line 525 def restitution=(v) self[:restitution] = v end |
#rollingResistance ⇒ Object
526 |
# File 'lib/box2d_types.rb', line 526 def rollingResistance = self[:rollingResistance] |
#rollingResistance=(v) ⇒ Object
527 |
# File 'lib/box2d_types.rb', line 527 def rollingResistance=(v) self[:rollingResistance] = v end |
#tangentSpeed ⇒ Object
528 |
# File 'lib/box2d_types.rb', line 528 def tangentSpeed = self[:tangentSpeed] |
#tangentSpeed=(v) ⇒ Object
529 |
# File 'lib/box2d_types.rb', line 529 def tangentSpeed=(v) self[:tangentSpeed] = v end |