Class: Box2D::JointDef
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::JointDef
- Defined in:
- lib/box2d_types.rb
Class Method Summary collapse
Instance Method Summary collapse
- #bodyIdA ⇒ Object
- #bodyIdA=(v) ⇒ Object
- #bodyIdB ⇒ Object
- #bodyIdB=(v) ⇒ Object
- #collideConnected ⇒ Object
- #collideConnected=(v) ⇒ Object
- #drawSize ⇒ Object
- #drawSize=(v) ⇒ Object
- #forceThreshold ⇒ Object
- #forceThreshold=(v) ⇒ Object
- #localFrameA ⇒ Object
- #localFrameA=(v) ⇒ Object
- #localFrameB ⇒ Object
- #localFrameB=(v) ⇒ Object
- #torqueThreshold ⇒ Object
- #torqueThreshold=(v) ⇒ Object
- #userData ⇒ Object
- #userData=(v) ⇒ Object
Class Method Details
.create_as(_userData_, _bodyIdA_, _bodyIdB_, _localFrameA_, _localFrameB_, _forceThreshold_, _torqueThreshold_, _drawSize_, _collideConnected_) ⇒ Object
752 753 754 755 756 757 758 759 760 761 762 763 764 |
# File 'lib/box2d_types.rb', line 752 def self.create_as(_userData_, _bodyIdA_, _bodyIdB_, _localFrameA_, _localFrameB_, _forceThreshold_, _torqueThreshold_, _drawSize_, _collideConnected_) instance = JointDef.new instance[:userData] = _userData_ instance[:bodyIdA] = _bodyIdA_ instance[:bodyIdB] = _bodyIdB_ instance[:localFrameA] = _localFrameA_ instance[:localFrameB] = _localFrameB_ instance[:forceThreshold] = _forceThreshold_ instance[:torqueThreshold] = _torqueThreshold_ instance[:drawSize] = _drawSize_ instance[:collideConnected] = _collideConnected_ instance end |
Instance Method Details
#bodyIdA ⇒ Object
736 |
# File 'lib/box2d_types.rb', line 736 def bodyIdA = self[:bodyIdA] |
#bodyIdA=(v) ⇒ Object
737 |
# File 'lib/box2d_types.rb', line 737 def bodyIdA=(v) self[:bodyIdA] = v end |
#bodyIdB ⇒ Object
738 |
# File 'lib/box2d_types.rb', line 738 def bodyIdB = self[:bodyIdB] |
#bodyIdB=(v) ⇒ Object
739 |
# File 'lib/box2d_types.rb', line 739 def bodyIdB=(v) self[:bodyIdB] = v end |
#collideConnected ⇒ Object
750 |
# File 'lib/box2d_types.rb', line 750 def collideConnected = self[:collideConnected] |
#collideConnected=(v) ⇒ Object
751 |
# File 'lib/box2d_types.rb', line 751 def collideConnected=(v) self[:collideConnected] = v end |
#drawSize ⇒ Object
748 |
# File 'lib/box2d_types.rb', line 748 def drawSize = self[:drawSize] |
#drawSize=(v) ⇒ Object
749 |
# File 'lib/box2d_types.rb', line 749 def drawSize=(v) self[:drawSize] = v end |
#forceThreshold ⇒ Object
744 |
# File 'lib/box2d_types.rb', line 744 def forceThreshold = self[:forceThreshold] |
#forceThreshold=(v) ⇒ Object
745 |
# File 'lib/box2d_types.rb', line 745 def forceThreshold=(v) self[:forceThreshold] = v end |
#localFrameA ⇒ Object
740 |
# File 'lib/box2d_types.rb', line 740 def localFrameA = self[:localFrameA] |
#localFrameA=(v) ⇒ Object
741 |
# File 'lib/box2d_types.rb', line 741 def localFrameA=(v) self[:localFrameA] = v end |
#localFrameB ⇒ Object
742 |
# File 'lib/box2d_types.rb', line 742 def localFrameB = self[:localFrameB] |
#localFrameB=(v) ⇒ Object
743 |
# File 'lib/box2d_types.rb', line 743 def localFrameB=(v) self[:localFrameB] = v end |
#torqueThreshold ⇒ Object
746 |
# File 'lib/box2d_types.rb', line 746 def torqueThreshold = self[:torqueThreshold] |
#torqueThreshold=(v) ⇒ Object
747 |
# File 'lib/box2d_types.rb', line 747 def torqueThreshold=(v) self[:torqueThreshold] = v end |
#userData ⇒ Object
734 |
# File 'lib/box2d_types.rb', line 734 def userData = self[:userData] |
#userData=(v) ⇒ Object
735 |
# File 'lib/box2d_types.rb', line 735 def userData=(v) self[:userData] = v end |