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



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

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#constraintDampingRatioObject



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

def constraintDampingRatio = self[:constraintDampingRatio]

#constraintDampingRatio=(v) ⇒ Object



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

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

#constraintHertzObject



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

def constraintHertz = self[:constraintHertz]

#constraintHertz=(v) ⇒ Object



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

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

#drawScaleObject



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

def drawScale = self[:drawScale]

#drawScale=(v) ⇒ Object



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

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

#forceThresholdObject



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

def forceThreshold = self[:forceThreshold]

#forceThreshold=(v) ⇒ Object



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

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

#localFrameAObject



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

def localFrameA = self[:localFrameA]

#localFrameA=(v) ⇒ Object



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

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

#localFrameBObject



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

def localFrameB = self[:localFrameB]

#localFrameB=(v) ⇒ Object



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

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

#torqueThresholdObject



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

def torqueThreshold = self[:torqueThreshold]

#torqueThreshold=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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