Class: Box2D::WheelJointDef

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _localAxisA_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_) ⇒ Object



1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
# File 'lib/box2d_types.rb', line 1173

def self.create_as(_bodyIdA_, _bodyIdB_, _localAnchorA_, _localAnchorB_, _localAxisA_, _enableSpring_, _hertz_, _dampingRatio_, _enableLimit_, _lowerTranslation_, _upperTranslation_, _enableMotor_, _maxMotorTorque_, _motorSpeed_, _collideConnected_, _userData_, _internalValue_)
  instance = WheelJointDef.new
  instance[:bodyIdA] = _bodyIdA_
  instance[:bodyIdB] = _bodyIdB_
  instance[:localAnchorA] = _localAnchorA_
  instance[:localAnchorB] = _localAnchorB_
  instance[:localAxisA] = _localAxisA_
  instance[:enableSpring] = _enableSpring_
  instance[:hertz] = _hertz_
  instance[:dampingRatio] = _dampingRatio_
  instance[:enableLimit] = _enableLimit_
  instance[:lowerTranslation] = _lowerTranslation_
  instance[:upperTranslation] = _upperTranslation_
  instance[:enableMotor] = _enableMotor_
  instance[:maxMotorTorque] = _maxMotorTorque_
  instance[:motorSpeed] = _motorSpeed_
  instance[:collideConnected] = _collideConnected_
  instance[:userData] = _userData_
  instance[:internalValue] = _internalValue_
  instance
end

Instance Method Details

#bodyIdAObject



1139
# File 'lib/box2d_types.rb', line 1139

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



1140
# File 'lib/box2d_types.rb', line 1140

def bodyIdA=(v) self[:bodyIdA] = v end

#bodyIdBObject



1141
# File 'lib/box2d_types.rb', line 1141

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



1142
# File 'lib/box2d_types.rb', line 1142

def bodyIdB=(v) self[:bodyIdB] = v end

#collideConnectedObject



1167
# File 'lib/box2d_types.rb', line 1167

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



1168
# File 'lib/box2d_types.rb', line 1168

def collideConnected=(v) self[:collideConnected] = v end

#dampingRatioObject



1153
# File 'lib/box2d_types.rb', line 1153

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



1154
# File 'lib/box2d_types.rb', line 1154

def dampingRatio=(v) self[:dampingRatio] = v end

#enableLimitObject



1155
# File 'lib/box2d_types.rb', line 1155

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



1156
# File 'lib/box2d_types.rb', line 1156

def enableLimit=(v) self[:enableLimit] = v end

#enableMotorObject



1161
# File 'lib/box2d_types.rb', line 1161

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



1162
# File 'lib/box2d_types.rb', line 1162

def enableMotor=(v) self[:enableMotor] = v end

#enableSpringObject



1149
# File 'lib/box2d_types.rb', line 1149

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



1150
# File 'lib/box2d_types.rb', line 1150

def enableSpring=(v) self[:enableSpring] = v end

#hertzObject



1151
# File 'lib/box2d_types.rb', line 1151

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



1152
# File 'lib/box2d_types.rb', line 1152

def hertz=(v) self[:hertz] = v end

#internalValueObject



1171
# File 'lib/box2d_types.rb', line 1171

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



1172
# File 'lib/box2d_types.rb', line 1172

def internalValue=(v) self[:internalValue] = v end

#localAnchorAObject



1143
# File 'lib/box2d_types.rb', line 1143

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



1144
# File 'lib/box2d_types.rb', line 1144

def localAnchorA=(v) self[:localAnchorA] = v end

#localAnchorBObject



1145
# File 'lib/box2d_types.rb', line 1145

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



1146
# File 'lib/box2d_types.rb', line 1146

def localAnchorB=(v) self[:localAnchorB] = v end

#localAxisAObject



1147
# File 'lib/box2d_types.rb', line 1147

def localAxisA = self[:localAxisA]

#localAxisA=(v) ⇒ Object



1148
# File 'lib/box2d_types.rb', line 1148

def localAxisA=(v) self[:localAxisA] = v end

#lowerTranslationObject



1157
# File 'lib/box2d_types.rb', line 1157

def lowerTranslation = self[:lowerTranslation]

#lowerTranslation=(v) ⇒ Object



1158
# File 'lib/box2d_types.rb', line 1158

def lowerTranslation=(v) self[:lowerTranslation] = v end

#maxMotorTorqueObject



1163
# File 'lib/box2d_types.rb', line 1163

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



1164
# File 'lib/box2d_types.rb', line 1164

def maxMotorTorque=(v) self[:maxMotorTorque] = v end

#motorSpeedObject



1165
# File 'lib/box2d_types.rb', line 1165

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



1166
# File 'lib/box2d_types.rb', line 1166

def motorSpeed=(v) self[:motorSpeed] = v end

#upperTranslationObject



1159
# File 'lib/box2d_types.rb', line 1159

def upperTranslation = self[:upperTranslation]

#upperTranslation=(v) ⇒ Object



1160
# File 'lib/box2d_types.rb', line 1160

def upperTranslation=(v) self[:upperTranslation] = v end

#userDataObject



1169
# File 'lib/box2d_types.rb', line 1169

def userData = self[:userData]

#userData=(v) ⇒ Object



1170
# File 'lib/box2d_types.rb', line 1170

def userData=(v) self[:userData] = v end