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
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 |
# File 'lib/box2d_types.rb', line 785 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
765 |
# File 'lib/box2d_types.rb', line 765 def bodyIdA = self[:bodyIdA] |
#bodyIdA=(v) ⇒ Object
766 |
# File 'lib/box2d_types.rb', line 766 def bodyIdA=(v) self[:bodyIdA] = v end |
#bodyIdB ⇒ Object
767 |
# File 'lib/box2d_types.rb', line 767 def bodyIdB = self[:bodyIdB] |
#bodyIdB=(v) ⇒ Object
768 |
# File 'lib/box2d_types.rb', line 768 def bodyIdB=(v) self[:bodyIdB] = v end |
#collideConnected ⇒ Object
783 |
# File 'lib/box2d_types.rb', line 783 def collideConnected = self[:collideConnected] |
#collideConnected=(v) ⇒ Object
784 |
# File 'lib/box2d_types.rb', line 784 def collideConnected=(v) self[:collideConnected] = v end |
#constraintDampingRatio ⇒ Object
779 |
# File 'lib/box2d_types.rb', line 779 def constraintDampingRatio = self[:constraintDampingRatio] |
#constraintDampingRatio=(v) ⇒ Object
780 |
# File 'lib/box2d_types.rb', line 780 def constraintDampingRatio=(v) self[:constraintDampingRatio] = v end |
#constraintHertz ⇒ Object
777 |
# File 'lib/box2d_types.rb', line 777 def constraintHertz = self[:constraintHertz] |
#constraintHertz=(v) ⇒ Object
778 |
# File 'lib/box2d_types.rb', line 778 def constraintHertz=(v) self[:constraintHertz] = v end |
#drawScale ⇒ Object
781 |
# File 'lib/box2d_types.rb', line 781 def drawScale = self[:drawScale] |
#drawScale=(v) ⇒ Object
782 |
# File 'lib/box2d_types.rb', line 782 def drawScale=(v) self[:drawScale] = v end |
#forceThreshold ⇒ Object
773 |
# File 'lib/box2d_types.rb', line 773 def forceThreshold = self[:forceThreshold] |
#forceThreshold=(v) ⇒ Object
774 |
# File 'lib/box2d_types.rb', line 774 def forceThreshold=(v) self[:forceThreshold] = v end |
#localFrameA ⇒ Object
769 |
# File 'lib/box2d_types.rb', line 769 def localFrameA = self[:localFrameA] |
#localFrameA=(v) ⇒ Object
770 |
# File 'lib/box2d_types.rb', line 770 def localFrameA=(v) self[:localFrameA] = v end |
#localFrameB ⇒ Object
771 |
# File 'lib/box2d_types.rb', line 771 def localFrameB = self[:localFrameB] |
#localFrameB=(v) ⇒ Object
772 |
# File 'lib/box2d_types.rb', line 772 def localFrameB=(v) self[:localFrameB] = v end |
#torqueThreshold ⇒ Object
775 |
# File 'lib/box2d_types.rb', line 775 def torqueThreshold = self[:torqueThreshold] |
#torqueThreshold=(v) ⇒ Object
776 |
# File 'lib/box2d_types.rb', line 776 def torqueThreshold=(v) self[:torqueThreshold] = v end |
#userData ⇒ Object
763 |
# File 'lib/box2d_types.rb', line 763 def userData = self[:userData] |
#userData=(v) ⇒ Object
764 |
# File 'lib/box2d_types.rb', line 764 def userData=(v) self[:userData] = v end |