Class: Box2D::MouseJointDef

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(_base_, _hertz_, _dampingRatio_, _maxForce_, _internalValue_) ⇒ Object



871
872
873
874
875
876
877
878
879
# File 'lib/box2d_types.rb', line 871

def self.create_as(_base_, _hertz_, _dampingRatio_, _maxForce_, _internalValue_)
  instance = MouseJointDef.new
  instance[:base] = _base_
  instance[:hertz] = _hertz_
  instance[:dampingRatio] = _dampingRatio_
  instance[:maxForce] = _maxForce_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#baseObject



861
# File 'lib/box2d_types.rb', line 861

def base = self[:base]

#base=(v) ⇒ Object



862
# File 'lib/box2d_types.rb', line 862

def base=(v) self[:base] = v end

#dampingRatioObject



865
# File 'lib/box2d_types.rb', line 865

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



866
# File 'lib/box2d_types.rb', line 866

def dampingRatio=(v) self[:dampingRatio] = v end

#hertzObject



863
# File 'lib/box2d_types.rb', line 863

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



864
# File 'lib/box2d_types.rb', line 864

def hertz=(v) self[:hertz] = v end

#internalValueObject



869
# File 'lib/box2d_types.rb', line 869

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



870
# File 'lib/box2d_types.rb', line 870

def internalValue=(v) self[:internalValue] = v end

#maxForceObject



867
# File 'lib/box2d_types.rb', line 867

def maxForce = self[:maxForce]

#maxForce=(v) ⇒ Object



868
# File 'lib/box2d_types.rb', line 868

def maxForce=(v) self[:maxForce] = v end