Class: Box2D::ChainSegment
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::ChainSegment
- Defined in:
- lib/box2d_collision.rb
Class Method Summary collapse
Instance Method Summary collapse
- #chainId ⇒ Object
- #chainId=(v) ⇒ Object
- #ghost1 ⇒ Object
- #ghost1=(v) ⇒ Object
- #ghost2 ⇒ Object
- #ghost2=(v) ⇒ Object
- #segment ⇒ Object
- #segment=(v) ⇒ Object
Class Method Details
.create_as(_ghost1_, _segment_, _ghost2_, _chainId_) ⇒ Object
322 323 324 325 326 327 328 329 |
# File 'lib/box2d_collision.rb', line 322 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
#chainId ⇒ Object
320 |
# File 'lib/box2d_collision.rb', line 320 def chainId = self[:chainId] |
#chainId=(v) ⇒ Object
321 |
# File 'lib/box2d_collision.rb', line 321 def chainId=(v) self[:chainId] = v end |
#ghost1 ⇒ Object
314 |
# File 'lib/box2d_collision.rb', line 314 def ghost1 = self[:ghost1] |
#ghost1=(v) ⇒ Object
315 |
# File 'lib/box2d_collision.rb', line 315 def ghost1=(v) self[:ghost1] = v end |
#ghost2 ⇒ Object
318 |
# File 'lib/box2d_collision.rb', line 318 def ghost2 = self[:ghost2] |
#ghost2=(v) ⇒ Object
319 |
# File 'lib/box2d_collision.rb', line 319 def ghost2=(v) self[:ghost2] = v end |
#segment ⇒ Object
316 |
# File 'lib/box2d_collision.rb', line 316 def segment = self[:segment] |
#segment=(v) ⇒ Object
317 |
# File 'lib/box2d_collision.rb', line 317 def segment=(v) self[:segment] = v end |