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



758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# File 'lib/box2d_types.rb', line 758

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#lengthObject



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

def length = self[:length]

#length=(v) ⇒ Object



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

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

#localAnchorAObject



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

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



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

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

#localAnchorBObject



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

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



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

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

#maxLengthObject



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

def maxLength = self[:maxLength]

#maxLength=(v) ⇒ Object



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

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

#maxMotorForceObject



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

def maxMotorForce = self[:maxMotorForce]

#maxMotorForce=(v) ⇒ Object



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

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

#minLengthObject



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

def minLength = self[:minLength]

#minLength=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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