Class: Box2D::JointDef

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(_userData_, _bodyIdA_, _bodyIdB_, _localFrameA_, _localFrameB_, _forceThreshold_, _torqueThreshold_, _constraintHertz_, _constraintDampingRatio_, _drawScale_, _collideConnected_) ⇒ Object



785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
# File 'lib/box2d_types.rb', line 785

def self.create_as(_userData_, _bodyIdA_, _bodyIdB_, _localFrameA_, _localFrameB_, _forceThreshold_, _torqueThreshold_, _constraintHertz_, _constraintDampingRatio_, _drawScale_, _collideConnected_)
  instance = JointDef.new
  instance[:userData] = _userData_
  instance[:bodyIdA] = _bodyIdA_
  instance[:bodyIdB] = _bodyIdB_
  instance[:localFrameA] = _localFrameA_
  instance[:localFrameB] = _localFrameB_
  instance[:forceThreshold] = _forceThreshold_
  instance[:torqueThreshold] = _torqueThreshold_
  instance[:constraintHertz] = _constraintHertz_
  instance[:constraintDampingRatio] = _constraintDampingRatio_
  instance[:drawScale] = _drawScale_
  instance[:collideConnected] = _collideConnected_
  instance
end

Instance Method Details

#bodyIdAObject



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#constraintDampingRatioObject



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

def constraintDampingRatio = self[:constraintDampingRatio]

#constraintDampingRatio=(v) ⇒ Object



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

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

#constraintHertzObject



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

def constraintHertz = self[:constraintHertz]

#constraintHertz=(v) ⇒ Object



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

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

#drawScaleObject



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

def drawScale = self[:drawScale]

#drawScale=(v) ⇒ Object



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

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

#forceThresholdObject



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

def forceThreshold = self[:forceThreshold]

#forceThreshold=(v) ⇒ Object



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

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

#localFrameAObject



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

def localFrameA = self[:localFrameA]

#localFrameA=(v) ⇒ Object



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

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

#localFrameBObject



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

def localFrameB = self[:localFrameB]

#localFrameB=(v) ⇒ Object



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

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

#torqueThresholdObject



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

def torqueThreshold = self[:torqueThreshold]

#torqueThreshold=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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