Class: Box2D::Manifold
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::Manifold
- Defined in:
- lib/box2d_collision.rb
Class Method Summary collapse
Instance Method Summary collapse
- #normal ⇒ Object
- #normal=(v) ⇒ Object
- #pointCount ⇒ Object
- #pointCount=(v) ⇒ Object
- #points ⇒ Object
- #points=(v) ⇒ Object
Class Method Details
.create_as(_points_, _normal_, _pointCount_) ⇒ Object
667 668 669 670 671 672 673 |
# File 'lib/box2d_collision.rb', line 667 def self.create_as(_points_, _normal_, _pointCount_) instance = Manifold.new instance[:points] = _points_ instance[:normal] = _normal_ instance[:pointCount] = _pointCount_ instance end |
Instance Method Details
#normal ⇒ Object
663 |
# File 'lib/box2d_collision.rb', line 663 def normal = self[:normal] |
#normal=(v) ⇒ Object
664 |
# File 'lib/box2d_collision.rb', line 664 def normal=(v) self[:normal] = v end |
#pointCount ⇒ Object
665 |
# File 'lib/box2d_collision.rb', line 665 def pointCount = self[:pointCount] |
#pointCount=(v) ⇒ Object
666 |
# File 'lib/box2d_collision.rb', line 666 def pointCount=(v) self[:pointCount] = v end |
#points ⇒ Object
661 |
# File 'lib/box2d_collision.rb', line 661 def points = self[:points] |
#points=(v) ⇒ Object
662 |
# File 'lib/box2d_collision.rb', line 662 def points=(v) self[:points] = v end |