Class: Box2D::SurfaceMaterial

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#customColorObject



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

#frictionObject



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

#materialObject



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

#restitutionObject



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

#rollingResistanceObject



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

#tangentSpeedObject



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