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_, _drawSize_, _collideConnected_) ⇒ Object



752
753
754
755
756
757
758
759
760
761
762
763
764
# File 'lib/box2d_types.rb', line 752

def self.create_as(_userData_, _bodyIdA_, _bodyIdB_, _localFrameA_, _localFrameB_, _forceThreshold_, _torqueThreshold_, _drawSize_, _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[:drawSize] = _drawSize_
  instance[:collideConnected] = _collideConnected_
  instance
end

Instance Method Details

#bodyIdAObject



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#drawSizeObject



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

def drawSize = self[:drawSize]

#drawSize=(v) ⇒ Object



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

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

#forceThresholdObject



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

def forceThreshold = self[:forceThreshold]

#forceThreshold=(v) ⇒ Object



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

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

#localFrameAObject



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

def localFrameA = self[:localFrameA]

#localFrameA=(v) ⇒ Object



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

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

#localFrameBObject



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

def localFrameB = self[:localFrameB]

#localFrameB=(v) ⇒ Object



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

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

#torqueThresholdObject



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

def torqueThreshold = self[:torqueThreshold]

#torqueThreshold=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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