Class: Box2D::SensorBeginTouchEvent

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(_sensorShapeId_, _visitorShapeId_) ⇒ Object



1256
1257
1258
1259
1260
1261
# File 'lib/box2d_types.rb', line 1256

def self.create_as(_sensorShapeId_, _visitorShapeId_)
  instance = SensorBeginTouchEvent.new
  instance[:sensorShapeId] = _sensorShapeId_
  instance[:visitorShapeId] = _visitorShapeId_
  instance
end

Instance Method Details

#sensorShapeIdObject



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

def sensorShapeId = self[:sensorShapeId]

#sensorShapeId=(v) ⇒ Object



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

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

#visitorShapeIdObject



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

def visitorShapeId = self[:visitorShapeId]

#visitorShapeId=(v) ⇒ Object



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

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