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



893
894
895
896
897
898
899
900
901
902
903
904
905
# File 'lib/box2d_types.rb', line 893

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#maxForceObject



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

def maxForce = self[:maxForce]

#maxForce=(v) ⇒ Object



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

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

#targetObject



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

def target = self[:target]

#target=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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