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



847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
# File 'lib/box2d_types.rb', line 847

def self.create_as(_base_, _length_, _enableSpring_, _lowerSpringForce_, _upperSpringForce_, _hertz_, _dampingRatio_, _enableLimit_, _minLength_, _maxLength_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _internalValue_)
  instance = DistanceJointDef.new
  instance[:base] = _base_
  instance[:length] = _length_
  instance[:enableSpring] = _enableSpring_
  instance[:lowerSpringForce] = _lowerSpringForce_
  instance[:upperSpringForce] = _upperSpringForce_
  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



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

def base = self[:base]

#base=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#lengthObject



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

def length = self[:length]

#length=(v) ⇒ Object



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

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

#lowerSpringForceObject



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

def lowerSpringForce = self[:lowerSpringForce]

#lowerSpringForce=(v) ⇒ Object



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

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

#maxLengthObject



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

def maxLength = self[:maxLength]

#maxLength=(v) ⇒ Object



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

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

#maxMotorForceObject



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

def maxMotorForce = self[:maxMotorForce]

#maxMotorForce=(v) ⇒ Object



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

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

#minLengthObject



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

def minLength = self[:minLength]

#minLength=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#upperSpringForceObject



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

def upperSpringForce = self[:upperSpringForce]

#upperSpringForce=(v) ⇒ Object



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

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