Class: Box2D::DistanceJointDef
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::DistanceJointDef
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #base ⇒ Object
- #base=(v) ⇒ Object
- #dampingRatio ⇒ Object
- #dampingRatio=(v) ⇒ Object
- #enableLimit ⇒ Object
- #enableLimit=(v) ⇒ Object
- #enableMotor ⇒ Object
- #enableMotor=(v) ⇒ Object
- #enableSpring ⇒ Object
- #enableSpring=(v) ⇒ Object
- #hertz ⇒ Object
- #hertz=(v) ⇒ Object
- #internalValue ⇒ Object
- #internalValue=(v) ⇒ Object
- #length ⇒ Object
- #length=(v) ⇒ Object
- #lowerSpringForce ⇒ Object
- #lowerSpringForce=(v) ⇒ Object
- #maxLength ⇒ Object
- #maxLength=(v) ⇒ Object
- #maxMotorForce ⇒ Object
- #maxMotorForce=(v) ⇒ Object
- #minLength ⇒ Object
- #minLength=(v) ⇒ Object
- #motorSpeed ⇒ Object
- #motorSpeed=(v) ⇒ Object
- #upperSpringForce ⇒ Object
- #upperSpringForce=(v) ⇒ Object
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
#base ⇒ Object
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 |
#dampingRatio ⇒ Object
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 |
#enableLimit ⇒ Object
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 |
#enableMotor ⇒ Object
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 |
#enableSpring ⇒ Object
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 |
#hertz ⇒ Object
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 |
#internalValue ⇒ Object
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 |
#length ⇒ Object
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 |
#lowerSpringForce ⇒ Object
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 |
#maxLength ⇒ Object
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 |
#maxMotorForce ⇒ Object
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 |
#minLength ⇒ Object
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 |
#motorSpeed ⇒ Object
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 |
#upperSpringForce ⇒ Object
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 |