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



1434
1435
1436
1437
1438
1439
1440
1441
# File 'lib/box2d_types.rb', line 1434

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

Instance Method Details

#contactIdObject



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

def contactId = self[:contactId]

#contactId=(v) ⇒ Object



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

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

#manifoldObject



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

def manifold = self[:manifold]

#manifold=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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