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



1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
# File 'lib/box2d_types.rb', line 1206

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



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

def bodyIdA = self[:bodyIdA]

#bodyIdA=(v) ⇒ Object



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

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

#bodyIdBObject



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

def bodyIdB = self[:bodyIdB]

#bodyIdB=(v) ⇒ Object



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

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

#collideConnectedObject



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

def collideConnected = self[:collideConnected]

#collideConnected=(v) ⇒ Object



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

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

#dampingRatioObject



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

def dampingRatio = self[:dampingRatio]

#dampingRatio=(v) ⇒ Object



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

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

#enableLimitObject



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

def enableLimit = self[:enableLimit]

#enableLimit=(v) ⇒ Object



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

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

#enableMotorObject



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

def enableMotor = self[:enableMotor]

#enableMotor=(v) ⇒ Object



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

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

#enableSpringObject



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

def enableSpring = self[:enableSpring]

#enableSpring=(v) ⇒ Object



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

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

#hertzObject



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

def hertz = self[:hertz]

#hertz=(v) ⇒ Object



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

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

#internalValueObject



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

def internalValue = self[:internalValue]

#internalValue=(v) ⇒ Object



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

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

#localAnchorAObject



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

def localAnchorA = self[:localAnchorA]

#localAnchorA=(v) ⇒ Object



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

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

#localAnchorBObject



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

def localAnchorB = self[:localAnchorB]

#localAnchorB=(v) ⇒ Object



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

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

#localAxisAObject



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

def localAxisA = self[:localAxisA]

#localAxisA=(v) ⇒ Object



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

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

#lowerTranslationObject



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

def lowerTranslation = self[:lowerTranslation]

#lowerTranslation=(v) ⇒ Object



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

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

#maxMotorTorqueObject



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

def maxMotorTorque = self[:maxMotorTorque]

#maxMotorTorque=(v) ⇒ Object



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

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

#motorSpeedObject



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

def motorSpeed = self[:motorSpeed]

#motorSpeed=(v) ⇒ Object



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

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

#upperTranslationObject



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

def upperTranslation = self[:upperTranslation]

#upperTranslation=(v) ⇒ Object



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

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

#userDataObject



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

def userData = self[:userData]

#userData=(v) ⇒ Object



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

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