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



1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
# File 'lib/box2d_types.rb', line 1298

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



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

def approachSpeed = self[:approachSpeed]

#approachSpeed=(v) ⇒ Object



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

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

#contactIdObject



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

def contactId = self[:contactId]

#contactId=(v) ⇒ Object



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

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

#normalObject



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

def normal = self[:normal]

#normal=(v) ⇒ Object



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

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

#pointObject



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

def point = self[:point]

#point=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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