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



1251
1252
1253
1254
1255
1256
1257
1258
1259
# File 'lib/box2d_types.rb', line 1251

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



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

def approachSpeed = self[:approachSpeed]

#approachSpeed=(v) ⇒ Object



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

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

#normalObject



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

def normal = self[:normal]

#normal=(v) ⇒ Object



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

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

#pointObject



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

def point = self[:point]

#point=(v) ⇒ Object



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

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

#shapeIdAObject



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

def shapeIdA = self[:shapeIdA]

#shapeIdA=(v) ⇒ Object



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

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

#shapeIdBObject



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

def shapeIdB = self[:shapeIdB]

#shapeIdB=(v) ⇒ Object



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

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