Class: Box2D::ContactBeginTouchEvent

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_, _contactId_) ⇒ Object



1241
1242
1243
1244
1245
1246
1247
# File 'lib/box2d_types.rb', line 1241

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

Instance Method Details

#contactIdObject



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

def contactId = self[:contactId]

#contactId=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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