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
- #bodyIdA ⇒ Object
- #bodyIdA=(v) ⇒ Object
- #bodyIdB ⇒ Object
- #bodyIdB=(v) ⇒ Object
- #collideConnected ⇒ Object
- #collideConnected=(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
- #localAnchorA ⇒ Object
- #localAnchorA=(v) ⇒ Object
- #localAnchorB ⇒ Object
- #localAnchorB=(v) ⇒ Object
- #maxLength ⇒ Object
- #maxLength=(v) ⇒ Object
- #maxMotorForce ⇒ Object
- #maxMotorForce=(v) ⇒ Object
- #minLength ⇒ Object
- #minLength=(v) ⇒ Object
- #motorSpeed ⇒ Object
- #motorSpeed=(v) ⇒ Object
- #userData ⇒ Object
- #userData=(v) ⇒ Object
Class Method Details
.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _length_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _minLength_, _maxLength_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) ⇒ Object
780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
# File 'lib/box2d_types.rb', line 780 def self.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _length_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _minLength_, _maxLength_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) instance = DistanceJointDef.new instance[:bodyIdA] = _bodyIdA_ instance[:bodyIdB] = _bodyIdB_ instance[:localAnchorA] = _localAnchorA_ instance[:localAnchorB] = _localAnchorB_ 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[:collideConnected] = _collideConnected_ instance[:userData] = _userData_ instance[:internalValue] = _internalValue_ instance end |
Instance Method Details
#bodyIdA ⇒ Object
746 |
# File 'lib/box2d_types.rb', line 746 def bodyIdA = self[:bodyIdA] |
#bodyIdA=(v) ⇒ Object
747 |
# File 'lib/box2d_types.rb', line 747 def bodyIdA=(v) self[:bodyIdA] = v end |
#bodyIdB ⇒ Object
748 |
# File 'lib/box2d_types.rb', line 748 def bodyIdB = self[:bodyIdB] |
#bodyIdB=(v) ⇒ Object
749 |
# File 'lib/box2d_types.rb', line 749 def bodyIdB=(v) self[:bodyIdB] = v end |
#collideConnected ⇒ Object
774 |
# File 'lib/box2d_types.rb', line 774 def collideConnected = self[:collideConnected] |
#collideConnected=(v) ⇒ Object
775 |
# File 'lib/box2d_types.rb', line 775 def collideConnected=(v) self[:collideConnected] = v end |
#dampingRatio ⇒ Object
760 |
# File 'lib/box2d_types.rb', line 760 def dampingRatio = self[:dampingRatio] |
#dampingRatio=(v) ⇒ Object
761 |
# File 'lib/box2d_types.rb', line 761 def dampingRatio=(v) self[:dampingRatio] = v end |
#enableLimit ⇒ Object
762 |
# File 'lib/box2d_types.rb', line 762 def enableLimit = self[:enableLimit] |
#enableLimit=(v) ⇒ Object
763 |
# File 'lib/box2d_types.rb', line 763 def enableLimit=(v) self[:enableLimit] = v end |
#enableMotor ⇒ Object
768 |
# File 'lib/box2d_types.rb', line 768 def enableMotor = self[:enableMotor] |
#enableMotor=(v) ⇒ Object
769 |
# File 'lib/box2d_types.rb', line 769 def enableMotor=(v) self[:enableMotor] = v end |
#enableSpring ⇒ Object
756 |
# File 'lib/box2d_types.rb', line 756 def enableSpring = self[:enableSpring] |
#enableSpring=(v) ⇒ Object
757 |
# File 'lib/box2d_types.rb', line 757 def enableSpring=(v) self[:enableSpring] = v end |
#hertz ⇒ Object
758 |
# File 'lib/box2d_types.rb', line 758 def hertz = self[:hertz] |
#hertz=(v) ⇒ Object
759 |
# File 'lib/box2d_types.rb', line 759 def hertz=(v) self[:hertz] = v end |
#internalValue ⇒ Object
778 |
# File 'lib/box2d_types.rb', line 778 def internalValue = self[:internalValue] |
#internalValue=(v) ⇒ Object
779 |
# File 'lib/box2d_types.rb', line 779 def internalValue=(v) self[:internalValue] = v end |
#length ⇒ Object
754 |
# File 'lib/box2d_types.rb', line 754 def length = self[:length] |
#length=(v) ⇒ Object
755 |
# File 'lib/box2d_types.rb', line 755 def length=(v) self[:length] = v end |
#localAnchorA ⇒ Object
750 |
# File 'lib/box2d_types.rb', line 750 def localAnchorA = self[:localAnchorA] |
#localAnchorA=(v) ⇒ Object
751 |
# File 'lib/box2d_types.rb', line 751 def localAnchorA=(v) self[:localAnchorA] = v end |
#localAnchorB ⇒ Object
752 |
# File 'lib/box2d_types.rb', line 752 def localAnchorB = self[:localAnchorB] |
#localAnchorB=(v) ⇒ Object
753 |
# File 'lib/box2d_types.rb', line 753 def localAnchorB=(v) self[:localAnchorB] = v end |
#maxLength ⇒ Object
766 |
# File 'lib/box2d_types.rb', line 766 def maxLength = self[:maxLength] |
#maxLength=(v) ⇒ Object
767 |
# File 'lib/box2d_types.rb', line 767 def maxLength=(v) self[:maxLength] = v end |
#maxMotorForce ⇒ Object
770 |
# File 'lib/box2d_types.rb', line 770 def maxMotorForce = self[:maxMotorForce] |
#maxMotorForce=(v) ⇒ Object
771 |
# File 'lib/box2d_types.rb', line 771 def maxMotorForce=(v) self[:maxMotorForce] = v end |
#minLength ⇒ Object
764 |
# File 'lib/box2d_types.rb', line 764 def minLength = self[:minLength] |
#minLength=(v) ⇒ Object
765 |
# File 'lib/box2d_types.rb', line 765 def minLength=(v) self[:minLength] = v end |
#motorSpeed ⇒ Object
772 |
# File 'lib/box2d_types.rb', line 772 def motorSpeed = self[:motorSpeed] |
#motorSpeed=(v) ⇒ Object
773 |
# File 'lib/box2d_types.rb', line 773 def motorSpeed=(v) self[:motorSpeed] = v end |
#userData ⇒ Object
776 |
# File 'lib/box2d_types.rb', line 776 def userData = self[:userData] |
#userData=(v) ⇒ Object
777 |
# File 'lib/box2d_types.rb', line 777 def userData=(v) self[:userData] = v end |