Class: Box2D::ChainSegment

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_collision.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_ghost1_, _segment_, _ghost2_, _chainId_) ⇒ Object



339
340
341
342
343
344
345
346
# File 'lib/box2d_collision.rb', line 339

def self.create_as(_ghost1_, _segment_, _ghost2_, _chainId_)
  instance = ChainSegment.new
  instance[:ghost1] = _ghost1_
  instance[:segment] = _segment_
  instance[:ghost2] = _ghost2_
  instance[:chainId] = _chainId_
  instance
end

Instance Method Details

#chainIdObject



337
# File 'lib/box2d_collision.rb', line 337

def chainId = self[:chainId]

#chainId=(v) ⇒ Object



338
# File 'lib/box2d_collision.rb', line 338

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

#ghost1Object



331
# File 'lib/box2d_collision.rb', line 331

def ghost1 = self[:ghost1]

#ghost1=(v) ⇒ Object



332
# File 'lib/box2d_collision.rb', line 332

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

#ghost2Object



335
# File 'lib/box2d_collision.rb', line 335

def ghost2 = self[:ghost2]

#ghost2=(v) ⇒ Object



336
# File 'lib/box2d_collision.rb', line 336

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

#segmentObject



333
# File 'lib/box2d_collision.rb', line 333

def segment = self[:segment]

#segment=(v) ⇒ Object



334
# File 'lib/box2d_collision.rb', line 334

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