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
- #maxLength ⇒ Object
- #maxLength=(v) ⇒ Object
- #maxMotorForce ⇒ Object
- #maxMotorForce=(v) ⇒ Object
- #minLength ⇒ Object
- #minLength=(v) ⇒ Object
- #motorSpeed ⇒ Object
- #motorSpeed=(v) ⇒ Object
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
#base ⇒ Object
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 |
#dampingRatio ⇒ Object
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 |
#enableLimit ⇒ Object
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 |
#enableMotor ⇒ Object
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 |
#enableSpring ⇒ Object
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 |
#hertz ⇒ Object
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 |
#internalValue ⇒ Object
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 |
#length ⇒ Object
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 |
#maxLength ⇒ Object
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 |
#maxMotorForce ⇒ Object
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 |
#minLength ⇒ Object
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 |
#motorSpeed ⇒ Object
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 |