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



1340
1341
1342
1343
1344
1345
1346
1347
1348
# File 'lib/box2d_types.rb', line 1340

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



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

def approachSpeed = self[:approachSpeed]

#approachSpeed=(v) ⇒ Object



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

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

#normalObject



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

def normal = self[:normal]

#normal=(v) ⇒ Object



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

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

#pointObject



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

def point = self[:point]

#point=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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