Class: Box2D::DistanceJointDef

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_, _length_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _minLength_, _maxLength_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _internalValue_) ⇒ Object



806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
# File 'lib/box2d_types.rb', line 806

def self.create_as(_base_, _length_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _minLength_, _maxLength_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _internalValue_)
  instance = DistanceJointDef.new
  instance[:base] = _base_
  instance[:length] = _length_
  instance[:enableSpring] = _enableSpring_
  instance[:hertz] = _hertz_
  instance[:dampingRatio] = _dampingRatio_
  instance[:enableLimit] = _enableLimit_
  instance[:minLength] = _minLength_
  instance[:maxLength] = _maxLength_
  instance[:enableMotor] = _enableMotor_
  instance[:maxMotorForce] = _maxMotorForce_
  instance[:motorSpeed] = _motorSpeed_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#baseObject



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

def base = self[:base]

#base=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#lengthObject



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

def length = self[:length]

#length=(v) ⇒ Object



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

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

#maxLengthObject



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

def maxLength = self[:maxLength]

#maxLength=(v) ⇒ Object



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

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

#maxMotorForceObject



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

def maxMotorForce = self[:maxMotorForce]

#maxMotorForce=(v) ⇒ Object



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

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

#minLengthObject



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

def minLength = self[:minLength]

#minLength=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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