Class: Box2D::ContactData

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(_shapeIdA_, _shapeIdB_, _manifold_) ⇒ Object



1383
1384
1385
1386
1387
1388
1389
# File 'lib/box2d_types.rb', line 1383

def self.create_as(_shapeIdA_, _shapeIdB_, _manifold_)
  instance = ContactData.new
  instance[:shapeIdA] = _shapeIdA_
  instance[:shapeIdB] = _shapeIdB_
  instance[:manifold] = _manifold_
  instance
end

Instance Method Details

#manifoldObject



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

def manifold = self[:manifold]

#manifold=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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