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
- #constraintDampingRatio ⇒ Object
- #constraintDampingRatio=(v) ⇒ Object
- #constraintHertz ⇒ Object
- #constraintHertz=(v) ⇒ Object
- #drawScale ⇒ Object
- #drawScale=(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_, _constraintHertz_, _constraintDampingRatio_, _drawScale_, _collideConnected_) ⇒ Object
791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 |
# File 'lib/box2d_types.rb', line 791 def self.create_as(_userData_, _bodyIdA_, _bodyIdB_, _localFrameA_, _localFrameB_, _forceThreshold_, _torqueThreshold_, _constraintHertz_, _constraintDampingRatio_, _drawScale_, _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[:constraintHertz] = _constraintHertz_ instance[:constraintDampingRatio] = _constraintDampingRatio_ instance[:drawScale] = _drawScale_ instance[:collideConnected] = _collideConnected_ instance end |
Instance Method Details
#bodyIdA ⇒ Object
771 |
# File 'lib/box2d_types.rb', line 771 def bodyIdA = self[:bodyIdA] |
#bodyIdA=(v) ⇒ Object
772 |
# File 'lib/box2d_types.rb', line 772 def bodyIdA=(v) self[:bodyIdA] = v end |
#bodyIdB ⇒ Object
773 |
# File 'lib/box2d_types.rb', line 773 def bodyIdB = self[:bodyIdB] |
#bodyIdB=(v) ⇒ Object
774 |
# File 'lib/box2d_types.rb', line 774 def bodyIdB=(v) self[:bodyIdB] = v end |
#collideConnected ⇒ Object
789 |
# File 'lib/box2d_types.rb', line 789 def collideConnected = self[:collideConnected] |
#collideConnected=(v) ⇒ Object
790 |
# File 'lib/box2d_types.rb', line 790 def collideConnected=(v) self[:collideConnected] = v end |
#constraintDampingRatio ⇒ Object
785 |
# File 'lib/box2d_types.rb', line 785 def constraintDampingRatio = self[:constraintDampingRatio] |
#constraintDampingRatio=(v) ⇒ Object
786 |
# File 'lib/box2d_types.rb', line 786 def constraintDampingRatio=(v) self[:constraintDampingRatio] = v end |
#constraintHertz ⇒ Object
783 |
# File 'lib/box2d_types.rb', line 783 def constraintHertz = self[:constraintHertz] |
#constraintHertz=(v) ⇒ Object
784 |
# File 'lib/box2d_types.rb', line 784 def constraintHertz=(v) self[:constraintHertz] = v end |
#drawScale ⇒ Object
787 |
# File 'lib/box2d_types.rb', line 787 def drawScale = self[:drawScale] |
#drawScale=(v) ⇒ Object
788 |
# File 'lib/box2d_types.rb', line 788 def drawScale=(v) self[:drawScale] = v end |
#forceThreshold ⇒ Object
779 |
# File 'lib/box2d_types.rb', line 779 def forceThreshold = self[:forceThreshold] |
#forceThreshold=(v) ⇒ Object
780 |
# File 'lib/box2d_types.rb', line 780 def forceThreshold=(v) self[:forceThreshold] = v end |
#localFrameA ⇒ Object
775 |
# File 'lib/box2d_types.rb', line 775 def localFrameA = self[:localFrameA] |
#localFrameA=(v) ⇒ Object
776 |
# File 'lib/box2d_types.rb', line 776 def localFrameA=(v) self[:localFrameA] = v end |
#localFrameB ⇒ Object
777 |
# File 'lib/box2d_types.rb', line 777 def localFrameB = self[:localFrameB] |
#localFrameB=(v) ⇒ Object
778 |
# File 'lib/box2d_types.rb', line 778 def localFrameB=(v) self[:localFrameB] = v end |
#torqueThreshold ⇒ Object
781 |
# File 'lib/box2d_types.rb', line 781 def torqueThreshold = self[:torqueThreshold] |
#torqueThreshold=(v) ⇒ Object
782 |
# File 'lib/box2d_types.rb', line 782 def torqueThreshold=(v) self[:torqueThreshold] = v end |
#userData ⇒ Object
769 |
# File 'lib/box2d_types.rb', line 769 def userData = self[:userData] |
#userData=(v) ⇒ Object
770 |
# File 'lib/box2d_types.rb', line 770 def userData=(v) self[:userData] = v end |