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
301 302 303 304 305 306 307 308 |
# File 'lib/box2d_collision.rb', line 301 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
299 |
# File 'lib/box2d_collision.rb', line 299 def chainId = self[:chainId] |
#chainId=(v) ⇒ Object
300 |
# File 'lib/box2d_collision.rb', line 300 def chainId=(v) self[:chainId] = v end |
#ghost1 ⇒ Object
293 |
# File 'lib/box2d_collision.rb', line 293 def ghost1 = self[:ghost1] |
#ghost1=(v) ⇒ Object
294 |
# File 'lib/box2d_collision.rb', line 294 def ghost1=(v) self[:ghost1] = v end |
#ghost2 ⇒ Object
297 |
# File 'lib/box2d_collision.rb', line 297 def ghost2 = self[:ghost2] |
#ghost2=(v) ⇒ Object
298 |
# File 'lib/box2d_collision.rb', line 298 def ghost2=(v) self[:ghost2] = v end |
#segment ⇒ Object
295 |
# File 'lib/box2d_collision.rb', line 295 def segment = self[:segment] |
#segment=(v) ⇒ Object
296 |
# File 'lib/box2d_collision.rb', line 296 def segment=(v) self[:segment] = v end |