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



1362
1363
1364
1365
1366
1367
1368
1369
1370
# File 'lib/box2d_types.rb', line 1362

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



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

def approachSpeed = self[:approachSpeed]

#approachSpeed=(v) ⇒ Object



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

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

#normalObject



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

def normal = self[:normal]

#normal=(v) ⇒ Object



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

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

#pointObject



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

def point = self[:point]

#point=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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