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



1373
1374
1375
1376
1377
1378
1379
1380
1381
# File 'lib/box2d_types.rb', line 1373

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

Instance Method Details

#approachSpeedObject



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

def approachSpeed = self[:approachSpeed]

#approachSpeed=(v) ⇒ Object



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

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

#normalObject



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

def normal = self[:normal]

#normal=(v) ⇒ Object



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

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

#pointObject



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

def point = self[:point]

#point=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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