Class: Box2D::ContactHitEvent

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_, _point_, _normal_, _approachSpeed_) ⇒ Object



1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
# File 'lib/box2d_types.rb', line 1292

def self.create_as(_shapeIdA_, _shapeIdB_, _contactId_, _point_, _normal_, _approachSpeed_)
  instance = ContactHitEvent.new
  instance[:shapeIdA] = _shapeIdA_
  instance[:shapeIdB] = _shapeIdB_
  instance[:contactId] = _contactId_
  instance[:point] = _point_
  instance[:normal] = _normal_
  instance[:approachSpeed] = _approachSpeed_
  instance
end

Instance Method Details

#approachSpeedObject



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

def approachSpeed = self[:approachSpeed]

#approachSpeed=(v) ⇒ Object



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

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

#contactIdObject



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

def contactId = self[:contactId]

#contactId=(v) ⇒ Object



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

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

#normalObject



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

def normal = self[:normal]

#normal=(v) ⇒ Object



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

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

#pointObject



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

def point = self[:point]

#point=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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