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(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _length_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _minLength_, _maxLength_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) ⇒ Object



791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
# File 'lib/box2d_types.rb', line 791

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

#bodyIdAObject



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#lengthObject



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

def length = self[:length]

#length=(v) ⇒ Object



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

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

#localAnchorAObject



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

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



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

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

#localAnchorBObject



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

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



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

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

#maxLengthObject



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

def maxLength = self[:maxLength]

#maxLength=(v) ⇒ Object



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

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

#maxMotorForceObject



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

def maxMotorForce = self[:maxMotorForce]

#maxMotorForce=(v) ⇒ Object



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

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

#minLengthObject



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

def minLength = self[:minLength]

#minLength=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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