Class: Box2D::MouseJointDef

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_, _target_, _hertz_, _dampingRatio_, _maxForce_, _collideConnected_, _userData_, _internalValue_) ⇒ Object



860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'lib/box2d_types.rb', line 860

def self.create_as(_bodyIdA_, _bodyIdB_, _target_, _hertz_, _dampingRatio_, _maxForce_, _collideConnected_, _userData_, _internalValue_)
  instance = MouseJointDef.new
  instance[:bodyIdA] = _bodyIdA_
  instance[:bodyIdB] = _bodyIdB_
  instance[:target] = _target_
  instance[:hertz] = _hertz_
  instance[:dampingRatio] = _dampingRatio_
  instance[:maxForce] = _maxForce_
  instance[:collideConnected] = _collideConnected_
  instance[:userData] = _userData_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#bodyIdAObject



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#maxForceObject



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

def maxForce = self[:maxForce]

#maxForce=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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