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



882
883
884
885
886
887
888
889
890
891
892
893
894
# File 'lib/box2d_types.rb', line 882

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#maxForceObject



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

def maxForce = self[:maxForce]

#maxForce=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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