Class: Box2D::PrismaticJointDef
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::PrismaticJointDef
- 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
- #dampingRatio ⇒ Object
- #dampingRatio=(v) ⇒ Object
- #enableLimit ⇒ Object
- #enableLimit=(v) ⇒ Object
- #enableMotor ⇒ Object
- #enableMotor=(v) ⇒ Object
- #enableSpring ⇒ Object
- #enableSpring=(v) ⇒ Object
- #hertz ⇒ Object
- #hertz=(v) ⇒ Object
- #internalValue ⇒ Object
- #internalValue=(v) ⇒ Object
- #localAnchorA ⇒ Object
- #localAnchorA=(v) ⇒ Object
- #localAnchorB ⇒ Object
- #localAnchorB=(v) ⇒ Object
- #localAxisA ⇒ Object
- #localAxisA=(v) ⇒ Object
- #lowerTranslation ⇒ Object
- #lowerTranslation=(v) ⇒ Object
- #maxMotorForce ⇒ Object
- #maxMotorForce=(v) ⇒ Object
- #motorSpeed ⇒ Object
- #motorSpeed=(v) ⇒ Object
- #referenceAngle ⇒ Object
- #referenceAngle=(v) ⇒ Object
- #upperTranslation ⇒ Object
- #upperTranslation=(v) ⇒ Object
- #userData ⇒ Object
- #userData=(v) ⇒ Object
Class Method Details
.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _localAxisA_, _referenceAngle_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) ⇒ Object
957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 |
# File 'lib/box2d_types.rb', line 957 def self.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _localAxisA_, _referenceAngle_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorForce_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) instance = PrismaticJointDef.new instance[:bodyIdA] = _bodyIdA_ instance[:bodyIdB] = _bodyIdB_ instance[:localAnchorA] = _localAnchorA_ instance[:localAnchorB] = _localAnchorB_ instance[:localAxisA] = _localAxisA_ instance[:referenceAngle] = _referenceAngle_ instance[:enableSpring] = _enableSpring_ instance[:hertz] = _hertz_ instance[:dampingRatio] = _dampingRatio_ instance[:enableLimit] = _enableLimit_ instance[:lowerTranslation] = _lowerTranslation_ instance[:upperTranslation] = _upperTranslation_ instance[:enableMotor] = _enableMotor_ instance[:maxMotorForce] = _maxMotorForce_ instance[:motorSpeed] = _motorSpeed_ instance[:collideConnected] = _collideConnected_ instance[:userData] = _userData_ instance[:internalValue] = _internalValue_ instance end |
Instance Method Details
#bodyIdA ⇒ Object
921 |
# File 'lib/box2d_types.rb', line 921 def bodyIdA = self[:bodyIdA] |
#bodyIdA=(v) ⇒ Object
922 |
# File 'lib/box2d_types.rb', line 922 def bodyIdA=(v) self[:bodyIdA] = v end |
#bodyIdB ⇒ Object
923 |
# File 'lib/box2d_types.rb', line 923 def bodyIdB = self[:bodyIdB] |
#bodyIdB=(v) ⇒ Object
924 |
# File 'lib/box2d_types.rb', line 924 def bodyIdB=(v) self[:bodyIdB] = v end |
#collideConnected ⇒ Object
951 |
# File 'lib/box2d_types.rb', line 951 def collideConnected = self[:collideConnected] |
#collideConnected=(v) ⇒ Object
952 |
# File 'lib/box2d_types.rb', line 952 def collideConnected=(v) self[:collideConnected] = v end |
#dampingRatio ⇒ Object
937 |
# File 'lib/box2d_types.rb', line 937 def dampingRatio = self[:dampingRatio] |
#dampingRatio=(v) ⇒ Object
938 |
# File 'lib/box2d_types.rb', line 938 def dampingRatio=(v) self[:dampingRatio] = v end |
#enableLimit ⇒ Object
939 |
# File 'lib/box2d_types.rb', line 939 def enableLimit = self[:enableLimit] |
#enableLimit=(v) ⇒ Object
940 |
# File 'lib/box2d_types.rb', line 940 def enableLimit=(v) self[:enableLimit] = v end |
#enableMotor ⇒ Object
945 |
# File 'lib/box2d_types.rb', line 945 def enableMotor = self[:enableMotor] |
#enableMotor=(v) ⇒ Object
946 |
# File 'lib/box2d_types.rb', line 946 def enableMotor=(v) self[:enableMotor] = v end |
#enableSpring ⇒ Object
933 |
# File 'lib/box2d_types.rb', line 933 def enableSpring = self[:enableSpring] |
#enableSpring=(v) ⇒ Object
934 |
# File 'lib/box2d_types.rb', line 934 def enableSpring=(v) self[:enableSpring] = v end |
#hertz ⇒ Object
935 |
# File 'lib/box2d_types.rb', line 935 def hertz = self[:hertz] |
#hertz=(v) ⇒ Object
936 |
# File 'lib/box2d_types.rb', line 936 def hertz=(v) self[:hertz] = v end |
#internalValue ⇒ Object
955 |
# File 'lib/box2d_types.rb', line 955 def internalValue = self[:internalValue] |
#internalValue=(v) ⇒ Object
956 |
# File 'lib/box2d_types.rb', line 956 def internalValue=(v) self[:internalValue] = v end |
#localAnchorA ⇒ Object
925 |
# File 'lib/box2d_types.rb', line 925 def localAnchorA = self[:localAnchorA] |
#localAnchorA=(v) ⇒ Object
926 |
# File 'lib/box2d_types.rb', line 926 def localAnchorA=(v) self[:localAnchorA] = v end |
#localAnchorB ⇒ Object
927 |
# File 'lib/box2d_types.rb', line 927 def localAnchorB = self[:localAnchorB] |
#localAnchorB=(v) ⇒ Object
928 |
# File 'lib/box2d_types.rb', line 928 def localAnchorB=(v) self[:localAnchorB] = v end |
#localAxisA ⇒ Object
929 |
# File 'lib/box2d_types.rb', line 929 def localAxisA = self[:localAxisA] |
#localAxisA=(v) ⇒ Object
930 |
# File 'lib/box2d_types.rb', line 930 def localAxisA=(v) self[:localAxisA] = v end |
#lowerTranslation ⇒ Object
941 |
# File 'lib/box2d_types.rb', line 941 def lowerTranslation = self[:lowerTranslation] |
#lowerTranslation=(v) ⇒ Object
942 |
# File 'lib/box2d_types.rb', line 942 def lowerTranslation=(v) self[:lowerTranslation] = v end |
#maxMotorForce ⇒ Object
947 |
# File 'lib/box2d_types.rb', line 947 def maxMotorForce = self[:maxMotorForce] |
#maxMotorForce=(v) ⇒ Object
948 |
# File 'lib/box2d_types.rb', line 948 def maxMotorForce=(v) self[:maxMotorForce] = v end |
#motorSpeed ⇒ Object
949 |
# File 'lib/box2d_types.rb', line 949 def motorSpeed = self[:motorSpeed] |
#motorSpeed=(v) ⇒ Object
950 |
# File 'lib/box2d_types.rb', line 950 def motorSpeed=(v) self[:motorSpeed] = v end |
#referenceAngle ⇒ Object
931 |
# File 'lib/box2d_types.rb', line 931 def referenceAngle = self[:referenceAngle] |
#referenceAngle=(v) ⇒ Object
932 |
# File 'lib/box2d_types.rb', line 932 def referenceAngle=(v) self[:referenceAngle] = v end |
#upperTranslation ⇒ Object
943 |
# File 'lib/box2d_types.rb', line 943 def upperTranslation = self[:upperTranslation] |
#upperTranslation=(v) ⇒ Object
944 |
# File 'lib/box2d_types.rb', line 944 def upperTranslation=(v) self[:upperTranslation] = v end |
#userData ⇒ Object
953 |
# File 'lib/box2d_types.rb', line 953 def userData = self[:userData] |
#userData=(v) ⇒ Object
954 |
# File 'lib/box2d_types.rb', line 954 def userData=(v) self[:userData] = v end |